How to insert a comment at the beginning all line by using sed command?
Posted by chandu on December 11th 2017 07:15 AM
This example shows how to add a character to the beginning of each line using a sed command and bashshell. Let’s create example file with some text. Add character at the beginning of each line using sed command. For example to add # in front of each line we can use sed command with following syntax: