Pages

Tuesday, November 20, 2012

sed search lines and comment out or uncomment



comment out..


             sed '/pattern/s/^/#/' 

uncomment out...
             sed '/pattern/s/^/# *//'

No comments:

Post a Comment