• Creator
  • #3951330

    How to use xargs with find

    by meetups.frosted-0h ·


    I have a large number of files on disk and trying to xargs with find to get faster output. find . -printf ‘%m %p\n’|sort -nr

    If I write find . -printf ‘%m %p\n’|xargs -0 -P 0 sort -nr, it gives error argument line is too long. Removing -0 option gives other error.

You are posting a reply to: How to use xargs with find

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    • #3951426
      Avatar photo

      Re: xargs and find

      by kees_b ·

      In reply to How to use xargs with find

      I see many explanations if I ask Google to tell me what it knows about LINUX XARGS FIND .

    • #3954153

      Reply To: How to use xargs with find

      by tourism-must0f ·

      In reply to How to use xargs with find

      xargs is great, but I find parallel much easier to use, not to mention its output handling is better. There are also xapply and xclate from the BSD world, which also have significant advantages over xargs, but overall I find myself using parallel whenever I need to run lots of jobs at once.

Viewing 1 reply thread