Comment lines in a file using bash sed

By.

min read

My profile

Share this:

Lines 2,3,4

[code:1:fbb4dc8263]sed -i” ‘2,4 s/^/#/’ bla.conf[/code:1:fbb4dc8263]

Source:
http://unix.stackexchange.com/questions/128593/simplest-way-to-comment-uncomment-certain-lines-using-command-line

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *