Hello,
I have a question about awk that I have asked a number of people
about but have had no joy with. A colleague have mine has suggested that
I submit the question to this newsgroup to see if anyone can help me.
Basically is there a way that I can use awk to extract a line from an
input file and put it into an output file on a specific line number i.e.
Input file contents
Hello there how are you
today. I am fine thank
you
If I use awk '/today/' input_file to extract the line today. I am fine
thank
Is there a way that I can output the line 'today. I am fine thank' on
for instance line 5 in the output file?
Output file contents
blank line
blank line
blank line
blank line
today. I am fine thank
I would appreciate any help with this.
Thanks
Ian