I have a file where each line starts with a "update" statement. I want to insert a new line, after each line, with the words "go" in the new line. Can someone help me out with this?
Hi,
inpt.txt
update table_name set a=10 where i=50
update table_name set b=10 where j=25
update table_name set c=40 where k=60
Try this sed command,
sed G inp.txt | sed 's/^$/go/g'
Regards,
Chella