Mailinglist Archive: opensuse (3336 mails)

< Previous Next >
Re: [SLE] using wc -l in loop
  • From: Simon Roberts <thorpflyer@xxxxxxxxx>
  • Date: Thu, 1 Dec 2005 21:05:57 -0800 (PST)
  • Message-id: <20051202050557.14733.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
tee is supposed to take a filename. The contents of the pipe are
duplicated into the file, so you can do other stuff with it. Like print
it out.

HTH
Simon

--- Arie Reynaldi Z <reymanx@xxxxxxxxx> wrote:

> > > I think the syntax you want will be based on this:
> > >
> > > for x in list
> > > do
> > > stuff...
> > > done | wc -l
> > >
>
> Hi, I have tried all commands from this threat, but I still cant get
> what I want, which get list of members and know how much are they. :(
> this script: do ...
> .. done | tee | wc -l
> only shows total of members, but I cant see who are they (list of
> members). I hope there are other ways, or maybe without using 'wc -l'
> ?
>
> regards,
>
> --
> Arie Reynaldi Zanahar
> reymanx at gmail.com
> http://www.reynaldi.or.id
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>
>


"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." — Naguib Mahfouz



__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com


< Previous Next >
References