On Mon, 15 Sep 2003, Rock wrote:
> I want to delete a line in a file if that line contains the value of the
> variable $name. I have tried sed '/$name/d' < inputfile > outfile
> without success.
In sed (and many other programs), '$' = 'end of line'. To escape this
special meaning, use '\$'.
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar Are you confident that you appear to be professional in your electronic communication? Consider this: A: No Q: Can I top post? from nick@xx.co.uk----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:30:34 EDT