Skip to content

Instantly share code, notes, and snippets.

@zlangley
Last active October 16, 2015 21:45
Show Gist options
  • Save zlangley/0880df1ac38dec6bb5df to your computer and use it in GitHub Desktop.
Save zlangley/0880df1ac38dec6bb5df to your computer and use it in GitHub Desktop.
Fix auto-generated Xcode file headers
# Assumes all header/implementation files want the filename on the second line.
# Run from your src directory.
for f in `find . -name '*.[mh]'`; do sed -i "" "2 s|.*|// `basename $f`|" "$f"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment