Created
December 21, 2010 04:34
-
-
Save adamvduke/749493 to your computer and use it in GitHub Desktop.
Inline edits text files to add a newline between the start of a control block i.e. method declaration, if/else statement etc... and opening curly brace.
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
#gsed is the GNU version of sed | |
#OSX ships with the BSD version which is apparently not the same | |
gsed -i 's/\([[:space:]]*\)\([[:print:]]\{1,\}\){/\1\2\n\1{/' ./Classes/*.m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment