The line I want to insert is:echo ":os:5.7:" >> /mnt/install_list [text removed here ....] echo ":app:name-here:" >> /mnt/install_list
I tried the following command as a start:echo ":app:new-name-here:" >> /mnt/install_list
I expected 'test' to be inserted in the test.cfg file, but it didn't work. Thoughts on getting this to work?perl -p -i.bak -e 's/echo*install_list(?!.*echo*install_list)/test/m' +test.cfg
-- Burvil
In reply to Look Ahead regexp to insert line? by bowei_99
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |