Created
September 8, 2012 01:57
-
-
Save rubypanther/3671304 to your computer and use it in GitHub Desktop.
Convert C comments for Ruby 2 (using sed)
This file contains 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
s/\/\/(.*http:\/\/.*)$/\/* \1 *\//g | |
t | |
s/(http:\/\/.*)$/\1/g | |
t | |
s/\/\/(.*)$/\/* \1 *\//g |
This file contains 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
find $1 -name '*.c' | xargs sed -r -i -f rb_ansi_to_iso.sed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment