home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d318 / cnewsbin.lha / CNewsBin / cnews.bin.lzh / C / onefile.sh < prev    next >
Text File  |  1990-02-06  |  671b  |  26 lines

  1. echo
  2. echo "This shell script pocesses one file from the News:In.Coming"
  3. echo "  directory.  Since the files are named by the arrival time,"
  4. echo "  they should be processed in order by arrival time.  Input files"
  5. echo "  are expected to be in compressed format.  This script makes use"
  6. echo "  of a version of 16-bit compress."
  7. echo
  8.  
  9.     cd News:In.Coming
  10.     echo *.z >RAM:tmp
  11.     input list <RAM:tmp
  12.     if $list
  13.         strhead one " " $list
  14.         strhead two ".z" $one
  15.         echo $one -- $two
  16.  
  17.         echo "acomp -d <" $one ">" RAM:$two
  18.         acomp -d <$one >RAM:$two
  19.         echo "relaynews -df <" RAM:$two
  20.         relaynews -df <RAM:$two
  21.  
  22.         rm RAM:$two News:In.Coming/$one
  23.     endif
  24.     unset list one two
  25.     rm RAM:tmp
  26.