> Back when I worked in a VMS shop there was a utility that manipulated
> environment variables to let you impose a stack discipline on your
> directory changes, so that you could repeatedly type "push /whatever" to
> change to another directory, and then repeatedly type "pop" to cd back
> to the previous directories. It saved a lot of typing.
> A Web search doesn't turn up any such thing for Linux. Do you know
> where such a thing can be found?
> Bobby Bryant
> Austin, Texas
Most shell languages and (bash and tcsh in particular) have the pushd,
popd
command pair with which you can perform all of these functions. It is
handy to have some aliases defined as "pd2 pushd +2" to work more
efficiently
but it's all there I also implemented :
back set back =$old; set old=$cwd;cd $back; unset back;dir
this allows you to go back to the previous directory without the
stacking option.
Pointers like this can be readily found in a book : Unix Power Tools
is a treasure for such things. (a Nutshell book distributed by
O'Reilly).
Hope this helps
Frank
--
______________________________________________________________________________
ROC Harper Hospital Voice: (313) 745 24 66
Karmanos Cancer Institute Fax: (313) 745 23 14
Wayne State University
3990 John R., Detroit, MI 48201