ls -l | grep -i WORDHERE | wc -l
Or, you could combine the readdir with a grep in perl:@files = grep /WORDHERE/,readdir(DIR);
In reply to Re: Count word in my dir
by beernuts
in thread Count word in my dir
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |