home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / ftpscrip.tz / ftpscrip / FtpExtra / bin / call next >
Encoding:
Text File  |  1991-08-19  |  622 b   |  19 lines

  1. #!/bin/csh -f
  2.  
  3. # This script makes it easier to ftp to your favorite sites.  It looks
  4. # in your .netrc file and searches for a string you give it. This saves
  5. # typing the whole name. e.g. Normally I would type
  6. # ftp sumex-aim.stanford.edu, now I can just say 'call sumex' or
  7. # 'call sum' since 'sum' uniquely identifies an entry in my .netrc
  8. # Having things in your .netrc is also benificial since it will log
  9. # you in, and save you the trouble of typing anonymous.
  10. #
  11. set place=`cat ~/.netrc | grep $1 | cut -c9-40`
  12. if ($place != '') then
  13. echo 'ftp '$place
  14. ftp $place
  15. else
  16. echo That site isnt listed in your netrc
  17. endif
  18.  
  19.