Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: copying to a deep parallel directory



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