bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Problem with 'sed' command


From: David Kastrup
Subject: Re: Problem with 'sed' command
Date: Wed, 11 Jul 2007 09:38:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

Paolo Bonzini <address@hidden> writes:

>> sed 's/Kitten'/Kitten"/g' cat.txt
>>
>> but it throws and error saying
>>
>> Unmatched '
>
> This is actually a shell error.  You are welcome to send requests like
> this to forums such as address@hidden; the short answer is
> to use proper shell quoting, as in
>
>   sed "s/Kitten\'/Kitten\"/g" cat.txt

One backslash too many.  Try

sed "s/Kitten'/Kitten\"/g" instead.

-- 
David Kastrup





reply via email to

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