Alias to change path on the fly
Paul Chamberlain
tif at doorstop.austin.ibm.com
Sat Nov 10 06:36:13 AEST 1990
In article <1990Nov8.014515.13882 at cpsc.ucalgary.ca> paquette at cs-sun-fsa.cpsc.ucalgary.ca (Trevor Paquette) writes:
>I have come up with the following aliases to change which directory I will use
>...
>alias host '`echo set path=\($path\)|sed s/itaqc/itahost/|sed s/itasc/itahost/`'
>...
Untested but much more likely to succeed alias follows:
alias host 'set path=(`echo $path|sed s/itaqc/itahost/|sed s/itasc/itahost/`)'
...
But, if I were you, I'd do something like this (which I even tested):
alias host 'set path=(`echo $path|sed "s/ita[a-z]*/itahost/"`)'
Paul Chamberlain | I do NOT represent IBM. tif at doorstop, sc30661 at ausvm6
512/838-7008 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif
More information about the Comp.unix.programmer
mailing list