|
Sed to read the file and replace and insert the pattern
Hi ,
I want to read from the file and check for the pattern, if the line has some word like <string>: then string should be copied into buffer.
Afterwards, I want to insert the same <string> with some word in the next line of the file.
Could you please help me out to use sed command to perform the above mentioned operations?
Thanks,
Saurabh
|