home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / CNEWS / _CNEWS.TAR / usr / lib / newsbin / relay / staleness < prev   
Encoding:
Text File  |  1994-09-02  |  306 b   |  12 lines

  1. #! /bin/sh
  2. # extract staleness in days from $NEWSCTL/explist
  3.  
  4. # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  5. . ${NEWSCONFIG-/var/lib/news/bin/config}
  6. PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH; export PATH
  7.  
  8. exec sed -n '/^\/expired\//{
  9. s/^[^     ]*[     ][     ]*[^     ]*[     ][     ]*\([^     .]*\)[     .].*/-o \1/p
  10. q
  11. }' $NEWSCTL/explist
  12.