sed 's/$/ SUFFIX/' file.txt

Category: Text Processing

sed 's/$/ SUFFIX/' file.txt

Append text to the end of each line

Adds text at the end of every line. $ matches the end of each line.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.