Hi2all,
if I have string "/mbu/data/cms" and I want to delete line that contains that string, I would do following:
variable i is automatically created from another file:
$i=/mbu/data/cms
sed "/$i/d" file
Ouput is "sed: 0602-410 The first regular expression cannot be null." because of slashes (/). How can I tell sed this is the complete string?
if I have string "/mbu/data/cms" and I want to delete line that contains that string, I would do following:
variable i is automatically created from another file:
$i=/mbu/data/cms
sed "/$i/d" file
Ouput is "sed: 0602-410 The first regular expression cannot be null." because of slashes (/). How can I tell sed this is the complete string?