uweb/searchurl/script/filecap_ziprar.sh
2020-03-13 12:48:29 +08:00

7 lines
262 B
Bash

(cat<<EOF ;cat /sdcard/uweb/default.filecap)|awk -F: '!s[$1]++'>a.tmp;mv a.tmp /sdcard/uweb/default.filecap
zip:text/plain:curl -r -1024 -s "%u">tmp.zip;unzip -l tmp.zip
rar:text/plain:curl -r 0-1024 -s "%u">tmp.rar;unrar l tmp.rar
EOF
apt install unzip unrar