awk - Enclose within double quotes -
i have command this, need each output line enclosed within double quotes ("..."
). how modify command?
awk '{ (i = 2; <= nf; i++) { printf("%s ", $i); } printf("\n") }' all.txt > result.txt
printf("\"")
prints out double quote, add before , after loop:
awk '{ printf("\""); (i = 2; <= nf; i++) { printf("%s ", $i); } printf("\"\n") }' t.txt
Comments
Post a Comment