uweb/searchurl/script/xzdic.sh
2021-10-19 22:23:37 +08:00

4 lines
220 B
Bash

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