personal daily use scripts

This commit is contained in:
2026-06-23 21:09:41 +02:00
parent 1fb68b7541
commit 9f2c2cb72d
7 changed files with 340 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
for file in "$@"; do
case "$file" in
*.tar) tar xvf "$file" ;;
*.tar.gz|*.tgz) tar xzvf "$file" ;;
*.tar.bz2|*.tbz2) tar xjvf "$file" ;;
*.tar.xz|*.txz) tar xJvf "$file" ;;
*.zip) unzip "$file" ;;
*.rar) unrar x "$file" ;;
*.7z) 7z x "$file" ;;
*.gz) gunzip "$file" ;;
*.bz2) bunzip2 "$file" ;;
*.xz) unxz "$file" ;;
*) echo "Unknown archive type: $file" ;;
esac
done