iankelling.org
/
git
/
small-misc-bash
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add sfs support
[small-misc-bash]
/
ex
diff --git
a/ex
b/ex
old mode 100644
(file)
new mode 100755
(executable)
index
44bb462
..
f944f65
--- a/
ex
+++ b/
ex
@@
-16,8
+16,11
@@
ex() {
local help="Usage: ex [--help] FILE...
Extract each FILE according to its extension.
ex() {
local help="Usage: ex [--help] FILE...
Extract each FILE according to its extension.
-7z bz2 deb gz iso rar rpm tar xz zip & variations.
-See source for exact file extensions."
+7z bz2 deb gz iso dsc rar rpm tar xz zip & 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
if [[ $1 == --help ]]; then
echo "$help"
fi
@@
-50,6
+53,8
@@
See source for exact file extensions."
$super umount "$temp_dir"
;;
*.r[0-9][0-9]|*.rar ) unrar x "$x" ;;
$super umount "$temp_dir"
;;
*.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
*) echo "I don't kno how to extract $x";;
esac
done