Files
.dotfiles/.local/bin/unzip-all
Quinn 519455fac7 start using GNU stow
add more configurations to the dotfiles directory
2025-05-30 15:34:13 +02:00

14 lines
218 B
Plaintext
Executable File

#/bin/bash
if [ -z ${var+2} ]; then
echo -e "\033[91mno parameters were given!\033[0m"
fi
for i in $2; do
readonly fname="$(basename $i .*)"
mkdir "$fname"
cd "$fname"
unzip "../$i"
cd -
done