for i in $(find /home/user/.procmail -name "*log"); do count=$(grep "/dev/null" $i | wc -l) echo "In $i there are $count strings" done Succes! Dragos
On Thu, Apr 01, 2004 at 07:30:35PM +0300, Lucian Gutu wrote: > sa fiu mai explicit > > in /home/$user/.procmail/ > am un fisier log > eu vreau ca din /home sa rulez o comanda care sa-mi afle de cate ori exista > in TOATE fisierele log (deci la toti userii) stringul "dev/null" > > sper ca acum ati inteles. > nici una din comenzi nu a facut ceea ce vroiam > > > ----- Original Message ----- > From: "Ady" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 01, 2004 7:26 PM > Subject: [rlug] Re: help comanda...completare > > > > Lucian Gutu in data de: Thu, 1 Apr 2004, ai tinut sa imi comunici: > > > > > am incercat si cu : > > > ls -aR log | less log | grep -c "dev/null" > > > > > > cat log | grep "/dev/null" | wc -l > > > > ? > > > > -- > > Numai bine, > > -- > > Adrian Bulgariu NetAdm at "Alexandru Papiu Ilarian" Highschool Dej > > Collaborator on national projects at Forte Company Ltd. IBM Business > Partner > > E-mail: mailto:[EMAIL PROTECTED] LRU: #334798 My dream is your > reality and > > Phone : +40-742.055.961, +40-264.211.425 int 25 somebody else's > nightmare. > > > > --- > > Detalii despre listele noastre de mail: http://www.lug.ro/ > > > > > --- > Detalii despre listele noastre de mail: http://www.lug.ro/ > > -- -- Attached file included as plaintext by Ecartis -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFAbF3IONlM6PUJv7kRAlT1AKCjt5Aq+JlJeBy0jYQr8XP1awlCvgCgnnUa 06t17T9i63Az3hcdiE75G9I= =t6ue -----END PGP SIGNATURE----- --- Detalii despre listele noastre de mail: http://www.lug.ro/
