bug-coreutils
[Top][All Lists]
Advanced

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

Re: wc


From: Pádraig Brady
Subject: Re: wc
Date: Fri, 12 Jun 2009 14:48:01 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Iram CHELLI wrote:
> Hello,
> 
> 
> i am using wc in shell scripts
> 
> the exact command is:
> 
>     wc FILE | cut -d " " -f 2

You probably want to squeeze adjacent blanks:

wc FILE | tr -s '[:blank:]' ' ' | cut -d' ' -f2

cheers,
Pádraig.




reply via email to

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