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

Re: Shell - escapes




On Tue, 10 May 2016 at 18:36, Die Optimisten <inform@die-optimisten.net> wrote:
Hi,

How can I escape a ' inside '...'
e.g. perl -e 'print '$ and a' '    # I don't want to use "

thank you
Andrew

perl -e 'print '\''$ and a'\'' '

The things that might look like double quotes in the above depending on your font are actually two single quotes side by side.

Mark

Reply to: