Skip to content

Instantly share code, notes, and snippets.

@dbonates
Forked from fe9lix/remove_swift_headers.sh
Created November 17, 2022 15:19
Show Gist options
  • Save dbonates/bd96e1a0ec5179480472b1ddd53b672f to your computer and use it in GitHub Desktop.
Save dbonates/bd96e1a0ec5179480472b1ddd53b672f 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