Hi All,
I am struggling to get my head around the following issue.
I am having to comment out lines between two delimiters by placing an asterix in position 7 but retain all lines in the file and in the same order.
so for example a file containing:
...
...
DELIM1
...
...
DELIM2
...
...
should be converted to:
...
...
* DELIM1
* ...
* ...
* DELIM2
...
...
end of example (... indicates line of text)
I can select the lines to be commented using
awk '/DELIM1/,/DELIM2/' file.in
but how do I merge the changed and unchanged lines into a single file and keep them all in the same order.
Thanks in advance.