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