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/' ` )
jQuery("<a />").attr("href", "http://yahoo.com").appendTo("#foo").text("link to yahoo").after("<br />");