File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ set -euo pipefail
16
16
# // - //
17
17
# // Source: https://www.quora.com/What-is-the-most-useful-bash-script-that-you-have-ever-written //
18
18
# // https://wiki.archlinux.org/title/Archiving_and_compression
19
+ # // https://github.com/xvoland/Extract
19
20
# // OS: ALL //
20
21
# // CPU: ALL //
21
22
# // //
@@ -27,6 +28,9 @@ extractAllTypeFiles(){
27
28
* .ark) arc x $1 ;;
28
29
* .arc) arc x $1 ;;
29
30
* .arj) arj e $1 ;;
31
+ * .cbt) tar xvf $1 ;;
32
+ * .cso) ciso 0 ./" $n " ./" $n .iso" && \
33
+ extract $n .iso && \r m -f $n ;;
30
34
* .tar.bz2) tar xvjf $1 ;;
31
35
* .tar.gz) tar xvzf $1 ;;
32
36
* .tar.lzma) tar --lzma -xvf $1 ;;
@@ -47,7 +51,9 @@ extractAllTypeFiles(){
47
51
* .tgz) tar xvzf $1 ;;
48
52
* .lz4) lz4 -d $1 ;;
49
53
* .lzh) lha x $1 ;;
50
- * .zip) unzip $1 ;;
54
+ * .xz) unxz $1 ;;
55
+ * .exe) cabextract $1 ;;
56
+ * .zip|* .epub|* .cbz) unzip $1 ;;
51
57
* .7z|* .z|* .apk|* .deb|* .dmg|* .lzh|* .msi|* .pkg|* .rpm|* .udf|* .wim|* .xar) 7z x $1 ;;
52
58
* .zst) zstd -dc $1 ;;
53
59
* .zpaq) zpaq x $1 ;;
@@ -63,6 +69,7 @@ extractAllTypeFiles(){
63
69
64
70
if [ $# -eq 0 ]; then
65
71
echo " No arguments provided"
72
+ echo " Usage: "
66
73
exit 1
67
74
fi
68
75
You can’t perform that action at this time.
0 commit comments