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.
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.