Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!spies!jrj From: jrj@Spies.COM (Richard Jones) Newsgroups: comp.unix.questions Subject: Re: using cd command in a file Message-ID: <1991Jun4.142714.8232@Spies.COM> Date: 4 Jun 91 14:27:14 GMT References: <13862@goofy.Apple.COM> Organization: Spies in the wire, (408) 867-7400 Lines: 29 In article <13862@goofy.Apple.COM> vlb@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@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 from anywhere, you are cd'd into D. Just a thought.