Script to change directory
Hi all,
I wrote a little script that greps a directory path in a file and echos it: Code:
# Script jobdir Code:
$ . jobdir arg Code:
cd `jobdir arg` Code:
cdjobdir arg Thanks |
How about alias mycommand="`jobdir $1`"
Then you can just type "mycommand arg" without the quotes and you're set. You might want to pick a better name other than "mycommand" but you get the idea. |
Quote:
Code:
alias cdjobdir 'cd `jobdir $1`' Code:
$ cdjobdir arg Code:
cd: Too many arguments. |
Quote:
Code:
cdjobdir () { cd `jobdir $1`; } Code:
cdjobdir argument |
No, I use tcsh on this machine
|
Quote:
|
All times are GMT -5. The time now is 06:09 PM. |