using cd command in a file
Richard Jones
jrj at Spies.COM
Wed Jun 5 00:27:14 AEST 1991
In article <13862 at goofy.Apple.COM> vlb at apple.COM (Vicki Brown) writes:
>In [several articles] [several people] write
>>>>>> I would like to get to a directory /me/A/B/C/D by just typing j.
>
>If you are using csh (or tcsh) look up cdpath. For example, I need to get to
>the directory
> /d4/oreo/install/3.0
>fairly regularly. My cdpath contains "/d4/oreo/install" and I just use the
>command "cd 3.0" to get to where I want to go.
>
>Since you can also use (no wildcards) subdirectories, this can be quite useful:
> cd 3.0/src
> cd 3.0/tst
>all with only 1 definition
>
>You may find this to be useful...
> Vicki Brown A/UX Development Group Apple Computer, Inc.
> Internet: vlb at apple.com MS 50UX, 10300 Bubb Rd.
> UUCP: {sun,amdahl,decwrl}!apple!vlb Cupertino, CA 95014 USA
> Ooit'n Normaal Mens Ontmoet? En..., Beviel't?
> (Have you ever met a normal person? So..., did you like it?)
The first thing that comes to mind is the use of ALIAS.
Why not use "alias j 'cd /me/A/B/C/D'" ?
Then, by typing j<CR> from anywhere, you are cd'd into D.
Just a thought.
More information about the Comp.unix.questions
mailing list