The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Grep Problem
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-22-2005
vino's Avatar
vino vino is online now
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,662
Quote:
Originally Posted by avadhani
But when I use , following command . I get result.

find . | xargs grep "searchtext"
It searches at both current dir and sub dir .

How to achive this using grep command .
Arent you using grep in your command ?

Or do you just want to use grep without the find ?

vino
Reply With Quote