uweb/zh/searchurl/script/filecap_ziprar.sh

8 lines
262 B
Bash
Raw Normal View History

2020-04-29 08:37:43 +00:00
(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