I use emacs shell extensively. so when i grep for some thing and i need to open the file, i have to visit the file (c-x c-f) eventhough imy emacs shell is in the current directory. so
echo “alias ec=’emacsclient -n'” >> ~/.bashrc
m-x server-start (you can add this to ur .emacs)
blah@foo:~> ec test.test
emacs is kewl !!