summaryrefslogtreecommitdiff
path: root/scripts/unzip-all
blob: 0982666711bba86dbe609b56a6478b4664f4f8b0 (plain)
1
2
3
#! /usr/bin/env sh
# https://askubuntu.com/a/518376
find "$1" ! -path "${1%/}/$(basename $PWD)/*" -name '*.zip' -exec sh -c 'x=${1%.*}; unzip -d "${x##*/}" "$1"' _ {} \;