Sign in
plan9port
/
plan9
/
bae34df843174dd2dfcbb3e584ea8f963f0c1d32
/
.
/
src
/
cmd
/
dict
/
getneeds
blob: 7f50edff49e7f871bafa4c76ec61bbffc4594888 [
file
] [
log
] [
blame
]
#!/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
*
}