SyntaxFix
Write A Post
Hire A Developer
Questions
This maybe what you're looking for:
awk 'BEGIN {FS=" ";} {printf "'\''%s'\'' ", $1}'
That is, with '\'' you close the opening ', then print a literal ' by escaping it and finally open the ' again.
'\''
'