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 <dennistwilliam...@gmail.com> wrote: > On Wed, Dec 29, 2010 at 1:28 AM, ali hagigat <hagigat...@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' > >