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

Re: copying to a deep parallel directory



>> Say I want to copy a file from
>> 
>> /var/www/html/admin/include/
>> 
>> to
>> 
>> /var/www/live/admin/include/
>> 

> cp <file> ${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



Messages sorted by: Reverse Date, Date, Thread, Author