uweb/searchurl/script/xzgrep.sh
2020-04-29 16:37:43 +08:00

4 lines
237 B
Bash

apt install xz-utils grep less
cd /sdcard/uweb/dict
(cat /sdcard/uweb/home.search;ls *.xz|awk -F: '{print $0 "G:c:xz -cdfq /sdcard/uweb/dict/" $0,"|grep -i \\\'%s\\\'|less" }')|awk -F: '!s[$1]++'>a.tmp;mv a.tmp /sdcard/uweb/home.search