X-Git-Url: https://iankelling.org/git/?p=small-misc-bash;a=blobdiff_plain;f=ex;h=159297b10c421a7ba8867211767e2f2d9fc61c2e;hp=c99cd12abe83a35eb118fc0c622df16fb608f3f7;hb=08759aa5b31bdd7a48f0ec161ec4c0b4235098dc;hpb=0644c7da9d439fd21637ea35c08d4890e2d6fcd4 diff --git a/ex b/ex index c99cd12..159297b 100755 --- a/ex +++ b/ex @@ -15,13 +15,15 @@ ex() { local help="Usage: ex [--help] FILE... -Extract many types of files based on their extensions +Extract many types of files +Based on their extensions, 7z bz2 deb gz iso dsc rar rpm tar xz zip sfs & 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 @@ -55,8 +57,8 @@ to try it out sometime." ;; *.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";; + *.sfs) $super unsquashfs "$x" ;; + *) echo "I don't know how to extract $x";; esac done }