Created
May 26, 2016 20:57
-
-
Save bootstraponline/9e71150060d5c45d4da5b8b806d738db to your computer and use it in GitHub Desktop.
Remove Useless Header comments from Xcode Templates
This file contains hidden or 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
#!/bin/bash | |
# Usage: | |
# $ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates | |
# $ bash ~/remove-boilerplate-comments-from-xcode-templates.sh | |
# Repeat for /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates | |
find -E . -type f \ | |
\( -regex '.*\.[chm]' -or -regex '.*\.swift' \) \ | |
-exec sed -i '' '1,/^$/d' '{}' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment