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.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to