I am writing a bash script for the processing of the files. I have several .xvg files which contain the XY info to plot the data. Somewhere inside of the each of the file there is a string:
@ s0 legend "SOD-r_58_&_C-alpha"
(It always start with "@ s0 legend"
.)
Could you suggest me the one string bash solution using awk or grep to find and remove this string from the file, remove the empty line in the place and finally save the processed file under a different name?