Skip to content

Instantly share code, notes, and snippets.

@smit9612
Forked from fe9lix/remove_swift_headers.sh
Created March 3, 2022 04:57
Show Gist options
  • Save smit9612/e2476b546e867fc6caa5b128fe958158 to your computer and use it in GitHub Desktop.
Save smit9612/e2476b546e867fc6caa5b128fe958158 to your computer and use it in GitHub Desktop.
Xcode: Remove header comments in Swift files
find . -type f -name "*.swift" -not -path "./Pods/*" -exec sed -i '' -e '1,/^import/{/^\/\/.*/d;}' -e '/./,$!d' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment