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!

search and cut

Status
Not open for further replies.

armylogman

Technical User
Feb 16, 2005
34
US
I am trying to search Multiple files for a 6 character variable then if it is found cut the complete line out of the file . any help would be greately appreciated


Thanks
 
man sed

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
grep -H 123456 *.htm

... this will look for 123456 in any .htm files in the current working directory - and return all the matches along with the filenames


Kind Regards
Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top