From: Ian Kelling Date: Wed, 16 Nov 2016 18:09:18 +0000 (-0800) Subject: add jar and xpi X-Git-Url: https://iankelling.org/git/?p=small-misc-bash;a=commitdiff_plain;h=e1828c55ddc97196af903d0a39eaebdba46a6b44 add jar and xpi --- 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