From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9483 invoked by alias); 6 Nov 2013 18:01:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18105 Received: (qmail 3922 invoked from network); 6 Nov 2013 18:00:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: copying to a deep parallel directory Date: Wed, 6 Nov 2013 18:00:29 +0000 (UTC) Organization: rayninfo Message-ID: References: <20131106175115.09d0cf95@pwslap01u.europe.root.pri> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 87-194-164-3.bethere.co.uk User-Agent: Xnews/2009.05.01 >> Say I want to copy a file from >> >> /var/www/html/admin/include/ >> >> to >> >> /var/www/live/admin/include/ >> > cp ${PWD/html/live} > > This syntax gets a bit messy if you're changing multiple levels > since you need to quote the slashes. > > pws > Thanks that's cute, I will so be using this! JWTDO zzapper