bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An error


From: James Youngman
Subject: Re: An error
Date: Thu, 14 Jun 2007 16:18:14 +0100

On 6/13/07, Dhruv Rangoonwala <address@hidden> wrote:
I have tried to use the following command:

cat -b <anyFileName>

If the file have blank lines, this command does not eliminate it. It still
gives number to that blank line. Please check it.

Arguably this is a documentation deficiency.   When used with -b, the
cat program numbers non-empty lines, as opposed to non-blank lines.
Lines containing only blanks are not empty and so are numbered:-

$ yes "" | head | cat -b










$ yes " " | head | cat -b
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
$




reply via email to

[Prev in Thread] Current Thread [Next in Thread]