Monday, February 7, 2011

Editing files in the user's path

I have lots of scripts in my path but the actual location differs.

If i have to edit them i often do
vim `which FILE_NAME`

for example
vim `which port_utility`


The which utility takes a command name and searches the path for each executable file that would be run had this commands actually been invoke.

No comments:

Post a Comment