1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash # unzip replacement written by Henry Jensen <hjensen@gmx.de> Opts="" cm="x" while getopts plvtTZ opt do case $opt in p) Opts="$Opts -so";; v|l) cm="l";; t) cm="t";; T|Z) ;; \?)break;; esac done shift $((OPTIND-1)) 7z $cm $Opts "$@"