On 06/03/2011 03:44 PM, Eric Blake wrote:
> But csplit is documented as requiring a single file name, followed by
> multiple patterns.
> 
> What you WANT to do is:
> 
> find . -name '*out' | \
>   xargs -I{} csplit {} '/All Frequencies/' '/Statistical'/

Or, ditch xargs altogether, and do it all through find:

find . -name '*out' -exec csplit {} "/All Frequencies/" /Statistical/ \;

which has the added benefit of avoiding problems with any *out files
that have embedded newlines.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to