bug-coreutils
[Top][All Lists]
Advanced

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

Re: wc


From: iram chelli
Subject: Re: wc
Date: Fri, 12 Jun 2009 21:43:10 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Pádraig Brady a écrit :
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.


Thank you this is great.

Cheers,

Iram.




reply via email to

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