11 Commits

Author SHA1 Message Date
Gustavo Adolfo Mesa Roldán b25fc8bd8d 0.5r7 2020-10-03 07:00:43 +02:00
Gustavo Adolfo Mesa Roldán edccc89586 0.5r7 2020-10-03 06:46:02 +02:00
Gustavo Adolfo Mesa Roldán 6b94a50229 0.5r6 - stable 2020-10-03 05:56:48 +02:00
Gustavo Adolfo Mesa Roldán 2596a6a6fb 0.5r6 - More... 2020-10-03 05:40:11 +02:00
Gustavo Adolfo Mesa Roldán b8cb0defe8 0.5r5 - vmdk run 2020-10-03 05:05:40 +02:00
Gustavo Adolfo Mesa Roldán b10ba9ffee 0.5r4 - Readme 2020-10-03 03:52:10 +02:00
Gustavo Adolfo Mesa Roldán 8ae84ab526 0.5r4 - Readme 2020-10-03 03:33:00 +02:00
Gustavo Adolfo Mesa Roldán 6692024ae1 0.5r4 - Readme 2020-10-03 03:27:35 +02:00
Gustavo Adolfo Mesa Roldán 9a13b0168c 0.5r4 - Readme 2020-10-03 03:26:43 +02:00
Gustavo Adolfo Mesa Roldán 446b6647ed 0.5r4 - Readme 2020-10-03 03:20:12 +02:00
Gustavo Adolfo Mesa Roldán fd40e86308 0.5r4 2020-10-03 03:18:22 +02:00
5 changed files with 63 additions and 33 deletions
+50 -16
View File
@@ -1,4 +1,18 @@
#Linux compressor humanizer
# Linux compressor humanizer
## Installation
###### install
```
sudo ./install.sh
```
###### Uninstall
```
sudo ./uninstall.sh
```
## Usage
###### Compress
```
@@ -10,22 +24,42 @@ $ lch file.zip file1 [file2...]
$ lch file.zip
```
## Supported extensions
- tar
- tar.gz
- tar.bz2
- tar.xz
- bz2
- tgz
- gz
- zip
- 7z
- rar
###### Options
```
$ lch -h - Show help
$ lch -v - Print version
$ lch -c - Check compression systems
$ lch -i - Install the compressors dependencies
```
## Install
```
sudo ./install.sh
```
## Supported extensions
###### Packing/unpacking:
- 7z
- bz2
- gz
- rar
- tar
- tar.bz2, tbz, tbz2, tb2
- tar.gz, tgz
- tar.xz, txz
- zip
###### Unpacking only:
- arj
- cab
- dmg
- iso
- lzh
- lzma
- rpm
- SquashFS
- vdi
- vhd
- vmdk
- win
- xar
- z
## Testing with docker
```
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=0.5r4
VERSION=0.5r7
DEST=$1
shift 1
ORIG=$@
+3 -6
View File
@@ -11,13 +11,10 @@ simplicity in mind. Automatically select the compression format by file
extension.
Packing/unpacking supported extensions:
7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip
7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip
Unpacking only supported extensions:
arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS
Unpacking only in beta extensions:
cdi, chd, vmdk, win, xar, z
arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z
.SH OPTIONS
.TP
+1 -1
View File
@@ -59,7 +59,7 @@ function decompressor()
error_not_install "unzip"
fi
;;
*.7z | *.arj | *.cab | *.cdi | *.chd | *.dmg | *.iso | *.lzh | *.lzma | *.rpm | *.squashfs | *.vmdk | *.win | *.xar | *.z)
*.7z | *.arj | *.cab | *.dmg | *.iso | *.lzh | *.lzma | *.rpm | *.squashfs | *.vdi | *.vhd | *.vmdk | *.win | *.xar | *.z)
if [ -x "$(command -v 7z)" ]
then
7z e -y $DEST
+8 -9
View File
@@ -17,13 +17,10 @@ function help()
echo "$ lch files.zip file1 file2 - Compress multiple"
echo ""
echo "Packing/unpacking supported extensions:"
echo " 7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip"
echo " 7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip"
echo ""
echo "Unpacking only supported extensions:"
echo " arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS"
echo ""
echo "Unpacking only in beta extensions:"
echo " cdi, chd, vmdk, win, xar, z"
echo " arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z"
echo ""
echo "Run 'man lch' for more info."
echo ""
@@ -35,12 +32,12 @@ function check()
echo -e "Verification of compression systems:\n"
echo -e "Systems\t\t\tStatus"
echo "----------------------------------"
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "unzip" "7za"
for i in "7z" "bzip2" "gzip" "rar" "tar" "unrar" "unzip" "zip"
do
if ! [ -x "$(command -v $i)" ]
then
echo -e "$i\t\t\t\e[91mNot Installed\e[0m"
$a = true
a=true
else
echo -e "$i\t\t\t\e[32mInstalled\e[0m"
fi
@@ -48,7 +45,8 @@ function check()
if $a
then
echo -e "\nIn order to use all the extensions install the packages: tar, bzip2, gzip, zip, unzip, 7za, rar, unrar"
echo -e "\nIn order to use all the extensions install the packages."
echo -e "Or use 'lch -i' to install all dependences"
fi
echo ""
}
@@ -60,5 +58,6 @@ function lowercase()
function error_not_install()
{
echo -e "$@ \e[91mis not Installed\e[0m, use 'lch -i' to install and 'lch -c' to check."
echo -e "$@ \e[91mis not installed\e[0m, use 'lch -i' to install and 'lch -c' to check."
exit 0
}