I have a pipe-delimited flat file (say, myfile.txt) that looks something like...
2004-03-16 | user | action
Within a shell script, I'd like to add some text at the end of each line so that the resulting file would look like...
2004-03-16 | user | action | 1
What is the easiest way to accomplish this?
2004-03-16 | user | action
Within a shell script, I'd like to add some text at the end of each line so that the resulting file would look like...
2004-03-16 | user | action | 1
What is the easiest way to accomplish this?