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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -