Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    BBBS.ENGLISH    |    The International BBBS Support Echo    |    2,762 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 62 of 2,762    |
|    Sean Rima to Janis Kracht    |
|    Re: Script to generate magic files    |
|    16 May 11 18:54:14    |
      -=> Janis Kracht wrote to Sean Rima <=-               JK> Hi Sean,               > Does anyone have a script that updates the magic file names for the current        > nodelist and other similar files               JK> I do, but for linux..I think Jame's idea of doing it in bz would be a        JK> better solution since it could be used across all OS's though.               JK> This is the relative part of my script.. it replaces the diff line        JK> (nodediff.a??)               JK> ==        JK> # update magic.lst        JK> # get julian date for this week        JK> num=`date +%j --date=Friday`        JK> pick=`expr substr $num 2 3`        JK> # pick is last two digits of day number        JK> lastwk=$(($num -7))        JK> # lastweek's node number        JK> lpick=`expr substr $lastwk 2 3`        JK> # lpick is the last two digits of last week's daynumber        JK> cat /home/bbbs/magic.lst |sed "s/a$lpick/a$pick/g" > newmagic cp        JK> newmagic /home/bbbs/magic.lst        JK> ===               JK> Hope this gets you to decent start - I know sed exists for Windows, but        JK> I'm not familiar really with the Windows date command :( date +%j is        JK> what gives you the julian date under linux.                     Thanks for that, I will start work when off work next, think this will play       some part of it :)              Sean              ... DalekDOS v(overflow): (I)Obey (V)ision impaired (E)xterminate              --- BBBS/NT v4.10 Dada-1        * Origin: bbs.srima.ie (2:263/950)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca