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

Then how to handle a single quote match?
  • Comment on Re^2: syntax error near unexpected token `)'

Replies are listed 'Best First'.
Re^3: syntax error near unexpected token `)'
by zwon (Abbot) on May 20, 2012 at 17:17 UTC
    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

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

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