This commit is contained in:
2026-01-06 20:01:57 -08:00
parent e9fb492dec
commit 0a57255043

View File

@ -1,3 +1,11 @@
#!/bin/sh
# unzips the contents of every present zip archive into directories of the same name
# the % is used to remove the file extension (.zip).
# % matches the shortest occurence from the end.
# %% would remove all extensions (.tar.gz would be matched by %%)
# # and ## are the corresponding operators for matching at the beginning
for file in ./*.zip; do for file in ./*.zip; do
dir_name=${file%.*} dir_name=${file%.*}
mkdir -p "$dir_name" mkdir -p "$dir_name"