I search a pattern, say 'START OF ARAMBOL' and it is matched in a file. Now I would like to comment every line from the line no 1 to the current matched pattern line no. I have to do it for more than 200 files.
I can do this using perl too but is there any good sed method to do so.
Thanks
#or%?)