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!

PROCESS FILE CONTAINING AWK COMMANDS

Status
Not open for further replies.

lesy

Programmer
Jun 27, 2001
3
US
I wrote some awk commands to extract data between 2 keywords. In it I specified the input file to work on and the output file to save the data. Now I would like to combine the awk commands with the input file.

For example, the file would be something like:

KEYWORD1
data1
data2
data3
data4
KEYWORD2

awk .... infile >outfile

Is there some keyword that I can use for "infile" that tells awk to work on the file it resides in?

Thank you.
 
getline ?
Can you please explain CLEARLY your issue ?

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

Part and Inventory Search

Sponsor

Back
Top