awk one liners

### In order to join 2 lines seprated with new line “^M” character

$awk ‘/^M$/ {print;next;} {printf(“%s”,$0);}’ FileName.txt

This entry was posted in Shell script, Unix/Linux. Bookmark the permalink.

Leave a Reply