Skip to content

Instantly share code, notes, and snippets.

@kiendang
Last active February 11, 2019 10:48
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 kiendang/9e67624ae949980a2eaf7ba0890d29b9 to your computer and use it in GitHub Desktop.
Save kiendang/9e67624ae949980a2eaf7ba0890d29b9 to your computer and use it in GitHub Desktop.
unzip all .zip files into directories
#!/bin/bash
find ${1:-.} -name '*.zip' | sed 's/.zip//' | xargs -n1 -P $(nproc) -I _ unzip _.zip -d _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment