diff options
author | Mattias Andrée <maandree@kth.se> | 2018-02-19 19:03:59 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-02-19 19:03:59 +0100 |
commit | aa1526183b2479c1bf3d29ddbd5bafcd13443254 (patch) | |
tree | beced5f56678e628b74b7ca727b45e5692b26f26 /README | |
parent | First commit (diff) | |
download | loc-aa1526183b2479c1bf3d29ddbd5bafcd13443254.tar.gz loc-aa1526183b2479c1bf3d29ddbd5bafcd13443254.tar.bz2 loc-aa1526183b2479c1bf3d29ddbd5bafcd13443254.tar.xz |
Add readme and loc.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'README')
-rw-r--r-- | README | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +NAME + loc - count number of lines of code + +SYNOPSIS + loc [file] ... + +DESCRIPTION + loc counts the number of lines of code for each specified + file. loc will treat each file as a C source code or C header + file. If file is -, the standard input is read. + + If no file is specified, the standard input is read, and + the number of lines of code is output on the format + + "%zu\n", <#lines of code> + + If exactly one file is specified, its number of lines of + code is output on the format + + "%zu\n", <#lines of code> + + If more than one file is specified, each successfully + line counted file will have its of lines of code output on + the format + + "%s:%*s%zu\n", <file>, <some positive integer>, "", <#lines of code> |