Revision 305,
982 bytes
checked in by wesommer, 37 years ago
(diff) |
Initial revision
|
Rev | Line | |
---|
[305] | 1 | #!/bin/csh -f |
---|
| 2 | # This takes a .disrc and creates a .meetings from it. |
---|
| 3 | # Written by Mark Eichin 4/2/87 pending the installation of the new discuss. |
---|
| 4 | # |
---|
| 5 | # I wrote this in 15 minutes. If you want real meeting names, write |
---|
| 6 | # a REAL program in C, or just fix them by hand with an editor. |
---|
| 7 | # |
---|
| 8 | # Modified same date Ken Raeburn to add 'echo' comments, and use |
---|
| 9 | # homedir for files. |
---|
| 10 | # |
---|
| 11 | |
---|
| 12 | # |
---|
| 13 | # usage: disrc2meetings |
---|
| 14 | # |
---|
| 15 | |
---|
| 16 | echo " " |
---|
| 17 | echo " This shell script will create a .meetings file for you" |
---|
| 18 | echo " from a .disrc file." |
---|
| 19 | echo " " |
---|
| 20 | echo " This new .meetings file will use only the secondary" |
---|
| 21 | echo " names of meetings; if you want to have the real names," |
---|
| 22 | echo " you can add them by hand -- we haven't got a tool to do" |
---|
| 23 | echo " it yet, unfortunately.. The namelist is the last" |
---|
| 24 | echo " nonblank field, with commas between names." |
---|
| 25 | echo " " |
---|
| 26 | |
---|
| 27 | set noclobber |
---|
| 28 | cat ~/.disrc \ |
---|
| 29 | | awk -F: '{ print "0:"$3":"$2":"$4":"$5":"$5":" }' \ |
---|
| 30 | | sed "s.:[0-9]*/.:/." \ |
---|
| 31 | | sed 's&:[^:]*/\([^:]*\):$&:\1:&' > ~/.meetings |
---|
Note: See
TracBrowser
for help on using the repository browser.