Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: copying a directory to same level
- X-seq: zsh-users 15311
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: copying a directory to same level
- Date: Sat, 21 Aug 2010 17:33:57 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=4KYHKHaIN5FqCxJLXU4M1WxilFS9YxNuAluzhne3CYI=; b=EkazZJvfnLbp4GBWR6FYRwrEJCVUcSIXkgAugmgel0oXFzBI70UTgbm4LfaM7B28FG I3bJSRVjH+OTb6s627w6iEv690rtefB4sWY9L8RH8jjVO0KsRjlEiJDxYVaqq0qIrB80 TZFHq6JU/fTfRNBKE6WEHex9CYr0eYyHJrN4s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Kz4biJP6T1rnC+da05ZJtKOBfgo5v6GKdqg3Pm15JL42nzLJmlii54+ShfhspCmkE9 /OJM+BJaV5DkvsNeahL4w2MzQucwrWB/0RfTXh+7QGBGPY+prWpNRnQcYCOcgbImtrfS 1pMrjMuBBIv11NWxJWa6LPvf9aq14IXSTkT54=
- In-reply-to: <Xns9DDBA4E47D3B3zzappergmailcom@xxxxxxxxxxxx>
- 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: <Xns9DDBA4E47D3B3zzappergmailcom@xxxxxxxxxxxx>
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