How to add text at the end of each line in unix
There are many ways: sed: replace $ (end of line) with the given text. $ sed ‘s/$/ | COUNTRY/’ file india | COUNTRY sudan | COUNTRY japan | COUNTRY france | COUNTRY awk: print the line plus the given text. $ awk ‘{print $0, “| COUNTRY”}’ file india | COUNTRY sudan | COUNTRY japan | … Read more