Re: cp on BSD (actually Mac OSX)

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: plug-discuss
Tárgy: Re: cp on BSD (actually Mac OSX)
On Fri, 2 Apr 2004, Craig White wrote:

> Man cp on OSX didn't give me any clues about an 'update' option
>
> Clues?


Use cpio or tar or pax.

cpio's normal behaviour is to not replace newer files with older files.

Some pax implementations have an -u option ("Ignore files that are older
than a pre-existing file").

And some versions of tar have an -u switch too for updating.

Jeremy C. Reed
http://bsd.reedmedia.net/

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss