Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: copying to a deep parallel directory
- X-seq: zsh-users 18104
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxxxxxx>
- Subject: Re: copying to a deep parallel directory
- Date: Wed, 6 Nov 2013 18:46:49 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=geJGkFXEbKvUSstJN48MgHscJ5h9iUVgOSu0J1Gn/G4=; b=Dku/V3cwr2dSsOs0USZgaQ39aYGCFT2zYqL6g8xQxMn0sYf4Us1w75rlzxii0RFqa7 7IjZ9qblwC6ipvBHMizFf1K6njJxyoEptiT/HJK92RBhJ42ZGcJozrHA2TNfNdXY88bL 0x1Edi+fVEcXsT2fkCuRnMTyhSdTu1ut1xrgq+LR0FUCsS+8UUH0dRDLGnfU3eT68HKK +22EQI+9MaO8DJV/doicYObgS6fGSUq4S6WJtHNiJ4D+AVz6sk5YgeAS+bM8WSlrBsUO rtwnT4qDUR3bDA9l6TqYokkk5JW0eLUjGJlfAe4+/Unkh+6DU2h1BcKYKPO8h9KicQQo HIJQ==
- In-reply-to: <XnsA270B0962A6B6davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA270B0962A6B6davidrayninfocouk@80.91.229.13>
Hi,
2013/11/6 zzapper <david@xxxxxxxxxxxxxx>:
> Say I want to copy a file from
>
> /var/www/html/admin/include/
>
> to
>
> /var/www/live/admin/include/
>
> I can of course
>
> cd html live
>
> and then I can use $OLDPWD or ~+1
>
> but is there anything niftier?
$PWD:s/html/live/ or ${PWD/html/live} ?
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author