How do you append a string at the end of each line in Unix?

How do you append a string at the end of each line in Unix?
Answer
There are many ways:
sed
: replace $ (end of line) with the given text. awk : print the line plus the given text. Finally, in pure bash : read line by line and print it together with the given text.
 

Tìm kiếm

Back
Top