I want do the following
awk \'BEGIN {FS=\" \";} {printf \"\'%s\' \", $1}\'
But escaping single quote this way does not work
A single quote is represented using \x27
\x27
Like in
awk 'BEGIN {FS=" ";} {printf "\x27%s\x27 ", $1}'
Source