[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wc
From: |
Giuseppe Scrivano |
Subject: |
Re: wc |
Date: |
Fri, 12 Jun 2009 16:20:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
Hello,
if you need a specific wc output field, the words count in this case,
you can use the command `wc -w FILE'. Is it what you want?
Regards,
Giuseppe
Iram CHELLI <address@hidden> writes:
> Hello,
>
>
> i am using wc in shell scripts
>
> the exact command is:
>
> wc FILE | cut -d " " -f 2
>
> it usually works but sometimes wc outputs the result in a different
> formatting, that is, I have to do a cut -d " " -f 3 to get the wc.
>
> This is not very convenient that the wc program shall not return
> results in a fixed formatting.
>
>
> Regards,
>
> Iram
>
>
> _______________________________________________
> Bug-coreutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-coreutils
- wc, Iram CHELLI, 2009/06/12
- Re: wc, Pádraig Brady, 2009/06/12
- Re: wc, Pádraig Brady, 2009/06/12
- Re: wc, Eric Blake, 2009/06/12
- Re: wc, iram chelli, 2009/06/12
- Re: wc, iram chelli, 2009/06/12
- Re: wc, Bob Proulx, 2009/06/12
- Re: wc, iram chelli, 2009/06/12
- Re: wc,
Giuseppe Scrivano <=
- Re: wc, iram chelli, 2009/06/12