good working version of acp
[small-misc-bash] / ex
diff --git a/ex b/ex
index f944f6556f50004f8eab4e005405a8f043c5c0d9..159297b10c421a7ba8867211767e2f2d9fc61c2e 100755 (executable)
--- a/ex
+++ b/ex
 
 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
 to try it out sometime."
+
     if [[ $1 == --help ]]; then
         echo "$help"
     fi
@@ -54,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
 }