First I tried:
echo `pwd` | echo `sed -e 's/production/staging/' ` | cd
That didn't work.
Then I tried:
cd $(echo `pwd` | echo `sed -e 's/production/staging/' ` )
That worked. Go figure...
echo `pwd` | echo `sed -e 's/production/staging/' ` | cd
cd $(echo `pwd` | echo `sed -e 's/production/staging/' ` )