Friday 13 February 2009

append a character at the end of line

one way i appended a character at the end of each line using awk .

awk 'BEGIN{OFS=""} { print $NF,"\\r"}' filename

it appends the character "\r" at the end of every line

No comments:

Post a Comment

Tweets by @sriramperumalla