aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dict/getneeds
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-25 03:37:45 +0000
committerrsc <devnull@localhost>2003-11-25 03:37:45 +0000
commit08708877939323c1e1cb87210193ec25fc472ff7 (patch)
treebd34e2144a3e9532ab228619d7ae8d4a0078aeeb /src/cmd/dict/getneeds
parent091f74d0a0db5ba1e098a518922525cb032a97b4 (diff)
downloadplan9port-08708877939323c1e1cb87210193ec25fc472ff7.tar.gz
plan9port-08708877939323c1e1cb87210193ec25fc472ff7.tar.bz2
plan9port-08708877939323c1e1cb87210193ec25fc472ff7.zip
add dict
Diffstat (limited to 'src/cmd/dict/getneeds')
-rwxr-xr-xsrc/cmd/dict/getneeds8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/dict/getneeds b/src/cmd/dict/getneeds
new file mode 100755
index 00000000..7f50edff
--- /dev/null
+++ b/src/cmd/dict/getneeds
@@ -0,0 +1,8 @@
+#!/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*
+}