I want to delete lines from a file matching certain strings. These strings contain slashes, i.e. '/'. My problem is that although you can change delimiter with sed for substitution, you cannot seem to do so with the delete option.
I.e. this does not work because of the slash in $x:
sed --in-place "/$x/d" total-list.csv
where $x is for example "http://someurl.com/uri". But you can't seem to change the delimiter when using the d option (I need it to be ~ for example, instead of /).
Can anyone help on this?
Thanks Paul