[Top][All Lists]

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

cut 2.0a

From: Hacksaw
Subject: cut 2.0a
Date: Fri, 10 May 2002 03:28:39 -0400

I run 'wc' on a file, .alias, containing 14 lines. It prints:
     14 /home/hacksaw/.alias

'wc -l ~/.alias | cut -f1' produces the same thing. This is non-intuitive.

'wc -l ~/.alias | cut -f1 -d" "' produces a blank line

'wc -l ~/.alias | cut -f1 -d"     "' produces
cut: the delimiter must be a single character

So cut is not a solution to print specific fields of input lines unless the 
delimiter is exactly one character. 

How often do the GNU utilities actually use tabs for that purpose? Obviously 
'wc' doesn't.

http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD

reply via email to

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