been trying to use see for hours. Can get it working with normal strings but not urls with slashes.
trying to replace /var/www/vhosts/sandbox.modernactivity.co.uk/ to nothing.
sed 's%var%%' /Volumes/WEB_BACKUP/backups/ukfast/scripts/INCLUDE_list.txt
spits out //www/vhosts/sandbox.modernactivity.co.uk/restofurl/ and the original was /var/www/vhosts/sandbox.modernactivity.co.uk/restofurl/. Just can’t get it to recognise the slashes.
It also doesn’t seem to be updating the file?
any tips welcome!
is this what you want?
test:
if you want to change the original file with sed, add -i option. like: