in reply to Count word in my dir
ls -l | grep -i WORDHERE | wc -l
Or, you could combine the readdir with a grep in perl:@files = grep /WORDHERE/,readdir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Count word in my dir
by Cine (Friar) on Aug 01, 2003 at 00:46 UTC |