Add unzip-dir script

main
Ian Mancini 4 years ago
parent a0e51c2ff4
commit 1895b942a8

@ -0,0 +1,6 @@
#!/bin/bash
[ $# != 1 ] && echo "Error: provide a single zip" && exit 1
zipfile="$1"
zipdir=${1%.zip}
unzip -d "$zipdir" "$zipfile"
Loading…
Cancel
Save