[SunHELP] grep.... recursive searching

sunhelp at sunhelp.org sunhelp at sunhelp.org
Thu Mar 7 08:15:56 CST 2002


find <start dir> -type f -exec grep <expr> {} /dev/null \;
will do recursive grep. /dev/null is there to trick grep to work on the list
of files and force it to print out file names.

I think this was posted a few months back.

Ivan

-----Original Message-----
From: Solaris Neophyte [mailto:solarisneophyte at yahoo.com]
Sent: Thursday, March 07, 2002 5:02 AM
To: sunhelp at sunhelp.org
Subject: [SunHELP] grep.... recursive searching


hello,

I know that the grep command has the ability to search a group of files...
you
can even specify multiple directories... but I want to know if there is an
option or some uncomplicated way to recursively search a directory so that I
don't need to enter each and every directory within a tree.

-Sameer
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list