Skip to content

Instantly share code, notes, and snippets.

@adamvr
Created January 6, 2011 23:06
Show Gist options
  • Save adamvr/768803 to your computer and use it in GitHub Desktop.
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/
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