Skip to content

Instantly share code, notes, and snippets.

@kathawala
Created May 24, 2015 01:33
Show Gist options
  • Save kathawala/88f2c5be8b1161496e03 to your computer and use it in GitHub Desktop.
Save kathawala/88f2c5be8b1161496e03 to your computer and use it in GitHub Desktop.
one-liner to zip all .c and .h files in a directory
find . | grep -E '\.(c|h)$' | zip six.zip -@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment