shithub: riscv

ref: 3f0f52ab69a8e821fcd1ac66b8d509ee3074c266
dir: /sys/src/cmd/dict/getneeds/

View raw version
#!/bin/rc
for (x in spec tag aux status) {
	grep ' '^$x^' ' $1 > junk1
	sort +4 -5 +3n -4 junk1 > junk2
	awk '{if ($5 != prev) print $0; prev = $5}' junk2 > junk3
	sort -n +2 -3 junk3 > need$x
	rm junk*
}