Skip to content

Instantly share code, notes, and snippets.

@toc21c
Created July 13, 2016 03:15
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 toc21c/acdefccdf906c41a83412fe4c360a079 to your computer and use it in GitHub Desktop.
Save toc21c/acdefccdf906c41a83412fe4c360a079 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
find . -name "*.gz" | xargs -P 5 -I fileName sh -c 'gunzip -c "fileName" > "$(basename -s .gz "fileName")"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment