Hey Everyone,
I am using Vi(m) text editor. Version 7.0
What I'm trying to do is simple.
I have two unique lines in a text file with the word '$count++' on one line and '$count--' on the other line (it's a perl script).
I would like to paste the phrase 'system "clear";' (a perl function) beneath each line, throughout the entire document (globally).
It is 6,000 + lines of code!
How can I do this in a single command?
I'm comfortable with linux, vim and the shell, so whatever I have to do.
Thanks!