Re: Change tar to GNU

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Fri, 18 Feb 2005 10:00:49 -0800
Steve Kargl wrote:
> On Thu, Feb 17, 2005 at 01:42:58PM -0600, Jon Noack wrote:
>
>>I think the issue is simply that the --newer option does not exist in 
>>bsdtar.  A very brief glance at the bsdtar man page didn't reveal any 
>>replacement
> 
> This is a Unix-like OS, so command pipes are possible.
> 
> find $PATH -newermt 20050214 | xargs tar cf new.tar

Somewhat better:

find $PATH -newermt 20050215 -print0 | tar -c -f new.tar -T - --null

Some people are more familiar with -I (which is a
synonym for -T).  Hmmm...  Looks like --null never
got onto the manpage.  I'll fix that.

This should solve Kaspar's problem.

Tim
Received on Fri Feb 18 2005 - 17:00:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC