X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=ex;h=f944f6556f50004f8eab4e005405a8f043c5c0d9;hb=d73e2d49c5a9275625efb2b124ad56145113e245;hp=775aba89dc69e23ffb7c77c518167c4228c9d1a7;hpb=36c6aae170a004b693104289119274e488bfc997;p=small-misc-bash diff --git a/ex b/ex index 775aba8..f944f65 100755 --- a/ex +++ b/ex @@ -16,8 +16,11 @@ ex() { local help="Usage: ex [--help] FILE... Extract each FILE according to its extension. -7z bz2 deb gz iso rar rpm tar xz zip & variations. -See source for exact file extensions." +7z bz2 deb gz iso dsc rar rpm tar xz zip & some combinations. +See source for exact file extensions. +Note: apt-get install dtrx will do the same for +most of these types, plus some more, I'm going +to try it out sometime." if [[ $1 == --help ]]; then echo "$help" fi @@ -51,6 +54,7 @@ See source for exact file extensions." ;; *.r[0-9][0-9]|*.rar ) unrar x "$x" ;; *.dsc) dpkg-source -x "$x" ;; + *.sfs) $user unsquashfs "$x" ;; *) echo "I don't kno how to extract $x";; esac done