Email List: Xaustin-group-lX
[All Lists]

Re: find + xargs

To: Geoff Clare <yyy@xxxxxxxxxxx>
Subject: Re: find + xargs
From: yyyyyy@xxxxxxx (Markus Gyger)
Date: Mon, 26 Mar 2001 00:06:27 -0500 (EST)
Cc: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
Geoff Clare <yyy@xxxxxxxxxxx> writes:

> The SVR4 behaviour is documented in Unixware man pages, so it's odd
> that it isn't documented by Solaris.  Here is the description from a
> Unixware 2.1 man page:
> 
>     -exec cmd    True if the executed cmd returns a zero value as
>                exit status.  A command argument {} is replaced
>                by the current path name.  The end of cmd must be
>                punctuated by an escaped semicolon or a plus sign
>                (+).  When a plus sign is used, cmd aggregates a
>                set of pathnames and executes on the set; when a
>                semicolon is used, cmd executes on one pathname
>                at a time.  The reason for preferring + to a
>                semicolon is vastly improved performance.

Almost the same on HP-UX:

      -exec cmd                True if the executed cmd returns a zero value
                               as exit status.  The end of cmd must be
                               punctuated by a semicolon (;) or a plus sign
                               (+) (semicolon and plus are special to the
                               shell and must be escaped). When a plus sign
                               is used, cmd aggregates a set of pathnames
                               and executes on the set. The reason for
                               preferring + to a semicolon is vastly
                               improved performance.  Any command argument
                               {} is replaced by the current path name.  cmd
                               may contain supplementary code set
                               characters.


Markus

<Prev in Thread] Current Thread [Next in Thread>