Subject: Re: Using build.sh, a question
To: David Laight <david@l8s.co.uk>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 06/05/2003 07:29:14
Thus spake David Laight ("DL> ") sometime Today...

DL> > bash-2.05$ cd ${PWD/src/obj}
DL>
DL> But your fingers will newer manage that one reliably :-)

It's remarkable what you can do with practice upon discovery of a new
feature.  :-)

I've found the pattern substitute quite useful, especially since you
can actually assign the result to another variable and keep it around
for future reference.  ${VAR//old/new} does it globally; I doubt you'll
get such an offer from 'cd'.

				--*greywolf;
--
NetBSD. Not Guano.