From aa1526183b2479c1bf3d29ddbd5bafcd13443254 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Feb 2018 19:03:59 +0100 Subject: Add readme and loc.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..24bc05c --- /dev/null +++ b/README @@ -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", , , "", <#lines of code> -- cgit v1.2.3-70-g09d2