sed 's/^/PREFIX: /' file.txt

Category: Text Processing

sed 's/^/PREFIX: /' file.txt

Prepend text to the beginning of each line

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