Skip to content

Instantly share code, notes, and snippets.

@fitzgeraldsteele
Created December 20, 2010 14:15
Show Gist options
  • Save fitzgeraldsteele/748414 to your computer and use it in GitHub Desktop.
Save fitzgeraldsteele/748414 to your computer and use it in GitHub Desktop.
Find files matching regular expressions in a directory tree, compress them into a tar/gzipped file
find -X . -name "*201009*" -o -name "*201010*" -o -name "*201011*" | xargs tar czvf ~/Desktop/corplogs.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment