Re: cp on BSD (actually Mac OSX)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: 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