tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cp -n diff



On Tue, 3 May 2011 20:30:35 +0200
Zafer Aydoğan <zafer%aydogan.de@localhost> wrote:

> Hello list,
> 
> attached is a patch that implements the -n option for cp, which skips existing
> files on the target.
> This is useful if you want copy two directories and want only the
> non-existing/new files to be be copied.
> This has also been implemented in FreeBSD as cp -n, in Linux its named
> -u for update.
> I have followed the FreeBSD implementation.
> The patch is easy and straightforward. It is against current.
> I would like to commit it.
> Please have a look.
> 
> Any comments ?
> 
> Zafer.

yes n | cp -i


-- 
NetBSD - Simplicity is prerequisite for reliability


Home | Main Index | Thread Index | Old Index