ix924@sdcc6.UUCP (Chris Borton) (05/05/85)
This shell script is useful for taking all or some of the files in net.sources.mac and putting just the results of xbin on all of them into one directory. Macsend (revised version of 4/27 by Barry Eynon (barry!playfair@Score) can then be used to download them all. I'm sure there is a more efficient way to do the process than this, but it does work. I would appreciate any improvements. With this shellscript as a base one could set up a Red Ryder RSP to log on, down- load everything, and log off pretty easily. Red Ryder 6.0 will hopefully have time batch files--even better! Well, I hope this helps! Chris Borton (sdcsvax!sdcc6!ix924) -----------------------< CUT HERE >-------------------------------- #! /bin/sh # Shellscript for xbin'ing groups of files to one directory for macput. # Invokes /bin/sh upon entry. # # This shellscript will ignore directories and files that are unreadable, # as well as any files without the line "(This file must be converted...)" # # Wildcards may be used. Thus, to xbin all files in the range 240 to 249 # use "macxbin 24*" # Upon termination of the operation, the Macintosh bell will ring # two times. This is your clue to wake up and see what is waiting. # This might be deleted if you plan to do this in the background and # don't want to be bothered. # # Done on May 4, 1985 by # Chris Borton (sdcsvax!sdcc6!ix924) # University of California at San Diego. (Undergraduate CS) # mesg n for f in $* do if [ -f $f ] && [ -r $f ] then fgrep "(This file must be converted" $f > /tmp/BinHextest if [ -s /tmp/BinHextest ] then rm /tmp/BinHextest # Replace "directory" with the full path to the directory you # wish to put the files to download. cp $f directory cd directory xbin $f rm $f # Replace "/usr/spool/news/net/sources/mac" with the path to your # net.sources.mac if it is different. cd /usr/spool/news/net/sources/mac else rm /tmp/BinHextest fi fi done echo -n " " echo "Downloads ready!" echo -n echo -n mesg y