Linux: Outputting single quotes in awk output
awk is a powerful utility for text processing, but the command itself is surrounded by single quotes and unfortunately does not allow you to escape single quotes within the output. To workaround this, you can represent the single quote as its hexidecimal escape code “\x27”. $ echo -e “name=Ben\nname=Jerry” | awk -F’=’ ‘{ printf(“insert into … Linux: Outputting single quotes in awk output