On 08/01/15 05:00, Dylan Cali wrote: > On Wed, Jan 7, 2015 at 10:54 PM, Dylan Cali <[email protected]> wrote: >> Maybe I've misunderstood the problem but you can also accomplish this with: >> >> find -print0 | xargs -n3 -0 | split -l3 > > Actually I guess it should be -n1 > > find -print0 | xargs -n1 -0 | split -l3
Yes, that's essentially converting \0 to \n and so is equivalent to (but doesn't distinguish embedded newlines): find -print0 | tr '\n\0' '\0\n' | split -l3 The proposed patch avoids the translation around the split process. Note also that some split functionality depends on working on seekable files, which is the main reason in my mind to not rely on external translation around split(1). thanks, Pádraig.
