uweb/searchurl/script/xzgrep.sh

5 lines
241 B
Bash
Raw Normal View History

2020-04-29 08:37:43 +00:00
apt install xz-utils grep less
cd /sdcard/uweb/dict
(cat /sdcard/uweb/home5.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/home5.search
2020-04-29 08:37:43 +00:00