diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..27516b5 --- /dev/null +++ b/README.MD @@ -0,0 +1,7 @@ +Unzip to a folder with the same name as the file (without the .zip extension) + + for f in *.zip; do unzip "$f" -d "${f%.zip}"; done + +For just one file (i.e. to use in a function) it would be: + + unzip "$1" -d "${1%.zip}" \ No newline at end of file