X-Git-Url: https://iankelling.org/git/?p=small-misc-bash;a=blobdiff_plain;f=ex;fp=ex;h=e0ea044c4698753ea6ded729ea3d4ba9617ba1ca;hp=159297b10c421a7ba8867211767e2f2d9fc61c2e;hb=e1828c55ddc97196af903d0a39eaebdba46a6b44;hpb=51079726e3b84b75897352cf16d074ca18d810b3 diff --git a/ex b/ex index 159297b..e0ea044 100755 --- a/ex +++ b/ex @@ -35,7 +35,7 @@ to try it out sometime." *.bz2 ) bunzip2 "$x" ;; *.gz ) gunzip "$x" ;; *.tar ) tar xf "$x" ;; - *.zip ) unzip "$x" ;; + *.zip|*.xpi ) unzip "$x" ;; *.Z ) uncompress "$x" ;; *.7z ) 7za x "$x" ;; *.deb ) ar x "$x" ;; @@ -58,6 +58,7 @@ to try it out sometime." *.r[0-9][0-9]|*.rar ) unrar x "$x" ;; *.dsc) dpkg-source -x "$x" ;; *.sfs) $super unsquashfs "$x" ;; + *.jar) jar xf "$x" ;; *) echo "I don't know how to extract $x";; esac done