[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to escape single quote?
From: |
ali hagigat |
Subject: |
Re: how to escape single quote? |
Date: |
Wed, 29 Dec 2010 14:14:49 +0330 |
Dennis,
Nice. Much appreciated
What logic is it using you think when we use echo 'ppp'\''qqq'?
Why echo 'ppp\'qqq' is not OK? It can not escape single quote by \ !
On Wed, Dec 29, 2010 at 1:11 PM, Dennis Williamson
<dennistwilliamson@gmail.com> wrote:
> On Wed, Dec 29, 2010 at 1:28 AM, ali hagigat <hagigatali@gmail.com> wrote:
>> I wonder if anybody knows how to escape a single quote character by
>> /bin/sh or bash?
>> echo 'ppp\'qqq''
>> ppp\qqq
>> Please look at the above example and the result.
>> Regards
>>
>>
>
> echo "ppp'qqq"
>
> or
>
> echo 'ppp'\''qqq'
>
>