---
name: "generic_count"
section: "1"
platform: "linux"
package: "sloccount"
version: "2.26+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/generic_count"
---

# generic\_count(1)

count physical lines of code, given a comment marker

## NAME

generic\_count - count physical lines of code, given a comment marker

## SYNOPSIS

**generic\_count** *commentstart* \[ **--f** *file* \] *files...*

## DESCRIPTION

This is a trivial/naive program for scripts used for sloccount toolsuite. This manpage is used for all the scripts using **generic\_count** (currently: **ada\_count,** **awk\_count,** **csh\_count,** **erlang\_count,** **exp\_count,** **lisp\_count,** **makefile\_count,** **ruby\_count,** **sed\_count,** **sh\_count,** **tcl\_count** )

## OPTIONS

- *commentstart*

  String that begins a comment (continuing until end-of-line).

- **-f** *file*

  File with a list of files to count (if "-", read list from stdin). It can coexist with a list of files on command line.

## SEE ALSO

See [sloccount(1)](/sloccount/1.md) for additional details about SLOCCount suite.

## AUTHOR

This manual page was written by Sandro Tosi \<matrixhasu@gmail.com\>, for the Debian project (but may be used by others)
