source: trunk/athena/bin/discuss/mclient/disrc2meetings.sh @ 305

Revision 305, 982 bytes checked in by wesommer, 38 years ago (diff)
Initial revision
Line 
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
16echo "  "
17echo "  This shell script will create a .meetings file for you"
18echo "  from a .disrc file."
19echo "  "
20echo "  This new .meetings file will use only the secondary"
21echo "  names of meetings; if you want to have the real names,"
22echo "  you can add them by hand -- we haven't got a tool to do"
23echo "  it yet, unfortunately..  The namelist is the last"
24echo "  nonblank field, with commas between names."
25echo "  "
26
27set noclobber
28cat ~/.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.