Friday, January 31, 2014

Use awk

This is handle one line to update double-quote to the beginning and end of each line of a file. And put plus sign at the end of the line. The purpose for this is that I want to copy the text file as a string to java String

 cat test.msg  | awk '{printf("\"%s\" +\n", $0);}'

No comments:

Post a Comment