Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple files with a director for a value

Status
Not open for further replies.

datadan

IS-IT--Management
Jul 22, 2002
283
US
I multiple virtual users on courier/postfix.

Each user's preference reside in a directory
../../prefs/user1
../../prefs/user2
....
../../prefs/user2000

user1 file =
Email=User
Name=userfirst userlast
Reply-to=useremail
etc

I have thousands of user preferences in here as individual files. I want to serach all the ../../prefs/user* files for a string containing "Reply-to=xyz".

Grep/cat work when I am searching one file. Can I make them work for searching through a whole directory?

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top