uweb/searchurl/script/xzdic.sh

5 lines
218 B
Bash
Raw Normal View History

2020-03-13 04:48:29 +00:00
apt install less
cd /sdcard/uweb/dict
(cat /sdcard/uweb/home.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/home.search