blob: d042ac10b314170aba1f5c065688e37e006079b9 [file] [log] [blame]
rsca19c44b2005-01-03 06:41:38 +00001#!/usr/local/plan9/bin/rc
2builtin cd $1
rsc93aa30a2005-01-14 03:27:51 +00003for (i in [a-z0-9:]*.[0-9]*) {
rsca19c44b2005-01-03 06:41:38 +00004 b=`{echo $i | sed 's/\..*//'}
rscc8b63422005-01-13 04:49:19 +00005 9 sed -n '
rsca19c44b2005-01-03 06:41:38 +00006 /SH *NAM/,/SH/{
7 /SH/d
8 s/, *$//
9 ty
10 :y
11 s/ *\\*-.*//
12 tx
13 s/ *\\\(mi.*//
14 tx
15 s/, */\
16/g
17 s/\n\\n/\
18/g
19 s/$/ '$i'/g
20 p
21 }
22 /SH *DES/q
23 d
24 :x
25 s/ *\\*-.*//
26 s/ *\\\(mi.*//
27 /^$/d
28 s/, */\
29/g
30 s/\n\n/\
31/g
32 s/$/ '$i'/g
33 p
34 q
35' $i
36echo $b $i
rscc8b63422005-01-13 04:49:19 +000037} |9 sort -u