Hi, I'm a UNIX scripting beginner and need some help. I now have a textfile wherein the contents come from SQL query. The number of lines will be dynamic. Here is a sample contents of the textfile named temp1.txt:
(int.sars),
(int.prev),
(int.batchg),
PROCESS DATA TABLES
(int.keelj),
(int),
I need to transform temp1.txt so that the last line before the line PROCESS DATA TABLES will contain a semicolon instead of comma. The desired output is:
(int.sars),
(int.prev),
(int.batchg);
PROCESS DATA TABLES
(int.keelj),
(int),
Any help is greatly appreciated. Thank you very much.
(int.sars),
(int.prev),
(int.batchg),
PROCESS DATA TABLES
(int.keelj),
(int),
I need to transform temp1.txt so that the last line before the line PROCESS DATA TABLES will contain a semicolon instead of comma. The desired output is:
(int.sars),
(int.prev),
(int.batchg);
PROCESS DATA TABLES
(int.keelj),
(int),
Any help is greatly appreciated. Thank you very much.