Skip to content

Instantly share code, notes, and snippets.

@benjaminhawkeslewis
Created September 27, 2011 10:16
Show Gist options
  • Save benjaminhawkeslewis/1244758 to your computer and use it in GitHub Desktop.
Save benjaminhawkeslewis/1244758 to your computer and use it in GitHub Desktop.
Put curly braces after closing parens
for f in `ack-grep -l '\) {' .` ; do sed -i -e 's/\( *\)\(.*\)) {/\1\2)\n\1{/' $f ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment