bug-bash
[Top][All Lists]
Advanced

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

Re: how to escape single quote?


From: Mart Frauenlob
Subject: Re: how to escape single quote?
Date: Wed, 29 Dec 2010 08:58:12 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 29.12.2010 08:28, ali hagigat 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


from man bash:

Enclosing characters in single quotes preserves the literal value of each character within the quotes. A single quote may not occur between single quotes, even when preceded by a backslash.




reply via email to

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