home bbs files messages ]

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 60 of 2,762   
   Janis Kracht to Sean Rima   
   Script to generate magic files   
   16 May 11 08:47:22   
   
   Hi Sean,   
      
   > Does anyone have a script that updates the magic file names for the current   
   > nodelist and other similar files   
      
   I do, but for linux..I think Jame's idea of doing it in bz would be a better   
   solution since it could be used across all OS's though.   
      
   This is the relative part of my script.. it replaces the diff line   
   (nodediff.a??)   
      
   ==   
   # update magic.lst   
   # get julian date for this week   
   num=`date +%j --date=Friday`   
   pick=`expr substr $num 2 3`   
   # pick is last two digits of day number   
   lastwk=$(($num -7))   
   # lastweek's node number   
   lpick=`expr substr $lastwk 2 3`   
   # lpick is the last two digits of last week's daynumber   
   cat /home/bbbs/magic.lst |sed "s/a$lpick/a$pick/g" > newmagic cp newmagic   
   /home/bbbs/magic.lst   
   ===   
      
   Hope this gets you to decent start - I know sed exists for Windows, but I'm   
   not familiar really with the Windows date command :(  date +%j is what gives   
   you the julian date under linux.   
      
   Take care,   
   Janis   
      
   --- BBBS/Li6 v4.10 Dada-1   
    * Origin: Prism bbs (1:261/38)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca