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

Re: copying a directory to same level



On 21 August 2010 17:12, zzapper <david@xxxxxxxxxx> wrote:
> Hi
> (Hope this is not too dumb)
>
> I want to duplicate directory vim73 to vim
>
>>cp -r vim73 vim/
>
> if directory vim does not exist then it does what I want.
> However if vim/ already exists then vim73/ will be created as a sub-directory
> in vim/ eg vim/vim73
>
> Can you explain this behaviour and how can I force it duplicate to same level
> regardless of whether directory exists

mkdir vim
cp -r vim73/* vim/

-- 
Mikael Magnusson



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