GNU awk.exe quotes, add

Print single quotes ' using \x27

Print double quotes " using \x22

Add quotes to every line:
awk "BEGIN {q="""\x22"""}{print q $0 q}" input.file
Add quotes to every line and wrap begining and end whitespaces:
awk "BEGIN {q="""\x22"""}{$1=$1;print q $0 q}" input.file
BEGIN is case sensitive.

No comments: