Skip to content

Instantly share code, notes, and snippets.

@corneliusroemer
Last active April 16, 2020 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corneliusroemer/5ac0bbe9cd56a878d2930510a2d48ca6 to your computer and use it in GitHub Desktop.
Save corneliusroemer/5ac0bbe9cd56a878d2930510a2d48ca6 to your computer and use it in GitHub Desktop.
Extract and concatenate all .gz files in all subdirectories into a new text file without touching the original files
find . -name '*.gz' -exec gzip -ckd {} + > test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment