grep - an easy question.

From: Mark Schlam <mslist_at_castle.beaver.edu>
Date: Sun, 22 Mar 1998 08:49:17 -0500 (EST)

Most of us know that to search for a string in a given file
grep "<string>" file works and

to search for a string in all files in an entire directory
grep "<string>" * works

but suppose you have a whole set of directories you wish to search through
where you search for the string in multiple directories
/-
        /foo
                /foo1 /foo2 /foo3 /foo4
                 file1 file2 file3 file4
                 <string> <string> <string> <string>
TIA for your help in providing the proper syntax for this search.
Mark
Received on Sun Mar 22 1998 - 14:46:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT