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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grep and find

Status
Not open for further replies.

uguess

Technical User
Nov 5, 2004
40
CA
I have multiple files

file1.txt
file2.txt
file3.txt

File1.txt
12O 1234567 Alan donald, cortext drive, 12345, AZ, etc.

How can I search all the files for field called state. The files are ziped with .gz extension. And give me the filename & line number where it finds records with state AZ.
 
Don't you have the zgrep script ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top