Hello, this is a VI question more than anything...
I'm using: SunOS 5.10 Generic_150400-04 sun4v sparc SUNW,T5240
I'm trying to find a problematic line(s) in a script.
The only solution I can think of is to tag each repetative line, and increment it.
This is an oracle insert script.
this line, "prompt inserting X" will echo "inserting X" to the STDOUT while the script executes.
So I have 20 different files that have inserts like the following:
insert into x (bla, bla, bla) values (1,2,3);
Each of those files has anywhere from 1500 to 110K+ repetitions of that line.
How can I run an automated script that edits the file and changes
"insert into xxxx"
into
"prompt inserting 1 -- for each iteration of this line, it needs to increment the number.
insert into xxxx"
That way when the file executes, I will see the incremented line number before the error it reports.
Thanks!
---------- Post updated at 10:18 AM ---------- Previous update was at 09:19 AM ----------
anyone?