Deleting lines using Sed

Hi All,

Please can anyone help me as am deleting a line in a file with the below script:

sed '/"$value"/d' redirects.virgin-atlantic.com.conf > olist

where $value is a variable where the pattern to be matched is stored.

I am not getting any error also but the line containing the pattern ($value) is not being deleted.

Best Regards,
Shazin

what the $value contains?

Try:

sed "/$value/d" redirects.virgin-atlantic.com.conf >olist

if possible, post the sample file and requirement.

Hi Anchal,

Many thanks it worked gr8....