Skip to content

Instantly share code, notes, and snippets.

@hhanesand
Created August 10, 2015 13:04
Show Gist options
  • Save hhanesand/400ec006310cfa93f79d to your computer and use it in GitHub Desktop.
Save hhanesand/400ec006310cfa93f79d to your computer and use it in GitHub Desktop.
Delete first 8 lines of a file with extension. Useful for deleting the copyright comments that xcode generates. In this case the NH is the file prefix and .h and .m are the accepted extensions.
find -regextype posix-extended -regex '.*?/NH.*?\.(h|m)' -exec sed -i -e '1,8d' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment