X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=ex;h=c99cd12abe83a35eb118fc0c622df16fb608f3f7;hb=0644c7da9d439fd21637ea35c08d4890e2d6fcd4;hp=10175a06e8ed6f9c0295881d90671fcac1ffb263;hpb=97ce487801e34743d528cd20faefa899906e83e1;p=small-misc-bash diff --git a/ex b/ex index 10175a0..c99cd12 100755 --- a/ex +++ b/ex @@ -15,8 +15,9 @@ ex() { local help="Usage: ex [--help] FILE... -Extract each FILE according to its extension. -7z bz2 deb gz iso dsc rar rpm tar xz zip & some combinations. +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 @@ -54,6 +55,7 @@ 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";; esac done