bigdaddy01
MIS
Hi guys,
I am trying to make a shell script in vi, there is loads of lines and I want this perl statement to be at the begining of each line. I can get the word 'perl' to work but if there is a space after the word 'perl'it doesnt work at all.
%s/\(.*\)/perl -pi -e"s/string1/string2/g"
I have tried putting all sorts of quotes around it
%s/\(.*\)/'perl -pi -e"s/string1/string2/g"'
This doesnt work either, any ideas ?
I am trying to make a shell script in vi, there is loads of lines and I want this perl statement to be at the begining of each line. I can get the word 'perl' to work but if there is a space after the word 'perl'it doesnt work at all.
%s/\(.*\)/perl -pi -e"s/string1/string2/g"
I have tried putting all sorts of quotes around it
%s/\(.*\)/'perl -pi -e"s/string1/string2/g"'
This doesnt work either, any ideas ?