The UNIX and Linux Forums  

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



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-19-2000
kitykity kitykity is offline
Registered User
 

Join Date: Sep 2000
Posts: 3
Unhappy

I have, say, a dozen files, and I want to grep for a string of text within them. I don't remember the exact syntax, but let me give it a shot and show you an idea here...
find . -type f -exec grep thisword {} \;
...and there's a way to put more than one grep into the statement, so it will tell you the file name too... anyone want to help me tackle this one? I used to have it written down, but of course I lost the piece of paper... :..(
- Suz
__________________
Susan K.
Unix Sun/HP System Administrator
Forum Sponsor Remove advertisements
!!
!!