On Mon, Jul 15, 2002 at 02:43:14PM -0700, John W. Krahn wrote:

> Vishal Kapoor wrote:
> > 
> > I want to read a few files and search for a particular word. I want to then
> > print a list of all the files with that word.
> > Any ideas ??
> 
> perl -lne'/\bparticular\b/&&print($ARGV)&&close(ARGV)' yourfiles*

grep -wl particular yourfiles*

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to