Add character to the beginning of each line using sed - LinuxConfig.org


#1
This example shows how to add a character to the beginning of each line using a sed command and bash shell. Let's create example file.txt with some text:
This is a companion discussion topic for the original entry at https://linuxconfig.org/add-character-to-the-beginning-of-each-line-using-sed