Posted By

jturmel on 07/11/09


Tagged

comment sed uncomment


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tazjel


sed script to comment/uncomment every line in a file


 / Published in: Bash
 

  1. # comment
  2. sed -i 's/^/#/g' /example/file/here.txt
  3.  
  4. #uncomment
  5. sed -i 's/^#//g' /example/file/here.txt

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: eddie007 on November 8, 2017

manage saved passwords in microsoft edge browser allows users to save passwords for the websites or application regularly visited by them

Posted By: eddie007 on November 8, 2017

manage saved passwords in microsoft edge browser allows users to save passwords for the websites or application regularly visited by them

Posted By: funnyjokes on February 28, 2019

Thank you for your sharing. Thanks to this article I can learn more things. Expand your knowledge and abilities. Actually the article is very practical. Thank you! subway surfers

You need to login to post a comment.