[Ilugc] grep recursive Search

  • From: shivanan@xxxxxxxxxxxxxxxxx (shivanan@xxxxxxxxxxxxxxxxx)
  • Date: Wed Mar 16 17:49:31 2005

Hi all,

I am using ksh Shell.

in that If I use 'grep -r' It is throwing the error like invalid option
for grep
I havn't used ksh but the grep command should be the same anywhere.
You can recursively search like this:

grep -d recurse * -e "expression-to-search-for"

"-d recurse" is  gratuitously verbose, I know, but I don't know if theres
a better way.

Other related posts: