I need to print a variable with single quotes around it. I have tried the following awk command:
awk -F: '{print "\'" $1 "\'"}' <filename>
It produces the error:
Unmatched "
I would like to print the variable in the format:
'<variable>'
Any suggestions would be grateful.
awk -F: '{print "\'" $1 "\'"}' <filename>
It produces the error:
Unmatched "
I would like to print the variable in the format:
'<variable>'
Any suggestions would be grateful.