[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] wc reallines
From: |
Ulf Harnhammar |
Subject: |
[PATCH] wc reallines |
Date: |
Thu, 16 Jan 2003 01:18:55 +0100 (CET) |
I noticed the lack of an option in wc to print the number of lines in a
file. As you know, the -l option counts the number of LF characters, which
is not the same as the number of lines if the file ends in the middle of a
line (the last character is not an LF).
I wrote a patch which adds such an option. Use it if you like. I have
patched against wc in textutils-2.1.
// Ulf Harnhammar
address@hidden
wc.reallines.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] wc reallines,
Ulf Harnhammar <=