Re: cp on BSD (actually Mac OSX)

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Jeremy C. Reed
Dato:  
Til: plug-discuss
Emne: 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