in reply to Re^2: syntax error near unexpected token `)'
in thread syntax error near unexpected token `)'

This sounds more like a bash question to me, but you can replace single quotes with \N{APOSTROPHE} or \x27. In bash you can do it like this:
$ echo 'aa'"'"'bb'; aa'bb

Replies are listed 'Best First'.
Re^4: syntax error near unexpected token `)'
by ikegami (Patriarch) on May 21, 2012 at 02:24 UTC

    Alternatively and one shorter: Change ' to '\''.

    $ echo 'aa'\''bb'; aa'bb