Created
January 6, 2011 23:06
-
-
Save adamvr/768803 to your computer and use it in GitHub Desktop.
A sed script to insert a comment character or characters to the beginning of a matched line. Source = http://scotgate.org/2006/02/27/useful-sed-line/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed 's|.*LINE_TO_MATCH.*|//&|g' fileToComment.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment