home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / ftpscrip.tz / ftpscrip / FtpExtra / bin / ftpnew < prev    next >
Encoding:
Text File  |  1991-09-10  |  762 b   |  20 lines

  1. #!/bin/csh -f
  2.  
  3. # With no arguments it shows you what's been posted this month on the
  4. # archives/directories you're watching.  Given a single argument
  5. # Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec   it will show what
  6. # was posted in that month.  If you chose to delete the raw data file
  7. # in 'ftpcheck' then you wont have this option.  The shortened file,
  8. # only contains, this months stuff.  You could chose not to generate
  9. # the shortend file in 'ftpcheck'. You could then use 'ftpnew [thismonth]'
  10. # to look at recent stuff.
  11. if ($?PAGER) then
  12. else
  13. set PAGER = more
  14. endif
  15. if ($1 == '') then 
  16.     $PAGER $FTPEXTRAS/lists/archive.dir.short
  17. else
  18. cat $FTPEXTRAS/lists/archive.dir | sed -n -e /$1'[01-9 ]*:/p' -e /SITE/p -e /directory/p -e /later/p  | $PAGER 
  19. endif
  20.