Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #165224
| From | kamaraju kusumanchi <raju.mailinglists@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: cd as much as possible |
| Date | 2016-03-11 05:10 +0100 |
| Message-ID | <rbmyJ-xu-1@gated-at.bofh.it> (permalink) |
| References | <rb1ui-2rw-11@gated-at.bofh.it> <rbmyJ-xu-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Mar 10, 2016 at 1:48 AM, Jens Bauer <jens-lists@gpio.dk> wrote: > Hi Kamaraju. > > Yes, it's possible. You could for instance write a bash function, which would do it. > But why would you want to do that ? I have the following directory structure tmp/issue-1 tmp/issue-5 tmp/issue-13 ... where the issue numbers are not contiguous. If I am working on an issue, say issue-37, I would like to do cd tmp/issue-37 If issue-37 is a new issue, I would like to be inside tmp so I can mkdir issue-37 if necessary. If it is an existing issue, I would like to be inside issue-37 automatically. > If you need to create all the directories, then you can just supply -p to mkdir. I am aware of mkdir -p option. But that is not what I want here. thanks raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cd as much as possible kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-03-10 06:40 +0100
Re: cd as much as possible Teemu Likonen <tlikonen@iki.fi> - 2016-03-10 08:20 +0100
Re: cd as much as possible kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-03-11 04:50 +0100
Re: cd as much as possible Jude DaShiell <jdashiel@panix.com> - 2016-03-11 13:10 +0100
Re: cd as much as possible Teemu Likonen <tlikonen@iki.fi> - 2016-03-11 13:30 +0100
Re: cd as much as possible kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-03-11 05:10 +0100
Re: cd as much as possible Jens Bauer <jens-lists@gpio.dk> - 2016-03-16 03:10 +0100
Re: cd as much as possible kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-03-18 05:20 +0100
csiph-web