[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A issue of sed

From: Eli Zaretskii
Subject: Re: A issue of sed
Date: 26 Oct 2003 08:07:02 +0200

> From: "Gzh Yang (Shanghai)" <address@hidden>
> Date: Fri, 7 Mar 2003 11:08:52 +0800
> sed s/^32\'h// input file > output file works,
> however 
> sed -f aaa input file > output file does not work.
> aaa is s/^32\'h// .
> When aaa has been changed to s/^32'h//, it works again.

That's not a bug: the ' character needs to be quoted with a backslash
to protect it from the shell.  When you do that, the shell strips the
backslash, and what Sed actually gets as its argument is s/^32'h//.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]