listhelper-moderate
[Top][All Lists]
Advanced

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

bug-gnu-utils post from address@hidden requires approval


From: bug-gnu-utils-owner
Subject: bug-gnu-utils post from address@hidden requires approval
Date: Tue, 10 Jul 2007 11:00:10 -0400

As list administrator, your authorization is requested for the
following mailing list posting:

    List:    address@hidden
    From:    address@hidden
    Subject: Problem with 'sed' command
    Reason:  Post by non-member to a members-only list

At your convenience, visit:

    http://lists.gnu.org/mailman/admindb/bug-gnu-utils
        
to approve or deny the request.
--- Begin Message --- Subject: Problem with 'sed' command Date: Tue, 10 Jul 2007 20:30:05 +0530
Hi,
 
I am using the sed command for a "search and replace" operation.
 
I am trying to replace a string with a '   like for example. I want to replace Kitten' with Kitten". So the command i am using is
 
sed 's/Kitten'/Kitten"/g' cat.txt   
 
but it throws and error saying
 
Unmatched '
 
So it takes the ' in the input (Kitten') to be the end of the the string and the actual ' which signifies end of string is treated as Unmatched '
 
How can we actually search and replace a string with ' in it.
 
Thanks,
Nehul.
 

--- End Message ---
--- Begin Message --- Subject: confirm 7afa4ba8e944fe4780d527c5a55fdc6cd926a3db
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.

--- End Message ---

reply via email to

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