From c0155fc23cb652a4693ffd78dd230ff7a6d83456 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 23 Sep 2024 17:02:51 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20README.MD=20con=20comandos=20?= =?UTF-8?q?=C3=BAtiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.MD 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