bug-coreutils
[Top][All Lists]
Advanced

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

Leading spaces from wc --lines


From: Bryce Nesbitt (mailing list account)
Subject: Leading spaces from wc --lines
Date: Fri, 07 Jan 2005 09:39:06 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

The "wc" command always seems to place leading spaces on all results, for example:

hardhat:Log> wc 1
    79     174    1579 1
hardhat:Log> wc --lines 1
    79 1

Is there a way to get "wc --lines" to return just the number for easy scripting, e.g.:

hardhat:Log> wc --lines 1
79

If not, is there a chance this can be changed?




reply via email to

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