http://stackoverflow.com/questions/3437514/bash-how-to-pipe-result-from-the-which-command-to-cd
cd $(dirname which `mpirun`)
bash – how to pipe result from the which command to cd
http://stackoverflow.com/questions/3437514/bash-how-to-pipe-result-from-the-which-command-to-cd
cd $(dirname which `mpirun`)