sed or awk conditional string replacement
I have the following string. If the string starts with
EXEC SQL INCLUDE then I need to replace the entire string with COPY filename.cpy and this should start in col 10. Is there a way to do this with sed or awk?
EXEC SQL INCLUDE filename END-EXEC
After replacement inc col 10: