Subject: Re: "--exclude" option for pax?
To: Todd Vierling <>
From: Frederick Bruckman <>
List: netbsd-users
Date: 11/30/2000 15:09:54
On Wed, 29 Nov 2000, Todd Vierling wrote:

> On 29 Nov 2000, Laine Stump wrote:
> : I can't find an equivalent in pax to tar's --exclude and --exlude-from
> : options. Am I missing the point somewhere?
> : 
> : (I would prefer to use pax, BTW, because I want to replicate *most* of
> : a directory hierarchy in another place. In the past I've done this by
> : piping the output of a tar cf - to the input of tar xf -, but this
> : seems wasteful if I can do the same thing with "pax -rw -pe ...")
> You want to use "-s", the regex substitution option.  If this pattern
> substitution comes out to "" (empty string), the file or directory is not
> copied.

That's neat! "pax" does have a "-c" option, which is similar to tar's
--exclude, but it only works with "-r", not "-w" or "-rw".