About 602,000 results
Open links in new tab
  1. xargs -I option - Unix & Linux Stack Exchange

    May 11, 2016 · The -0 option in your example instructs xargs to split its input on null bytes instead of blanks or newlines. Combined with find 's -print0, this allows filenames containing blanks or …

  2. When is xargs needed? - Unix & Linux Stack Exchange

    The xargs command always confuses me. Is there a general rule for it? Consider the two examples below: $ \\ls | grep Cases | less prints the files that match 'Cases', but changing the …

  3. Using xargs with input from a file - Unix & Linux Stack Exchange

    17 $ man xargs ... --arg-file=file -a file Read items from file instead of standard input. If you use this option, stdin remains unchanged when commands are run. Other- wise, stdin is redirected …

  4. xargs -0 cmd vs find . -exec cmd - Unix & Linux Stack Exchange

    Jan 7, 2023 · With find . -print0 | xargs -0 cmd, cmd can do a exit 255 to abort xargs, but find won't exit afterwards until it tries to write the next block to the pipe. xargs -0 cmd over -exec …

  5. xargs: 'ls' terminated by signal 13 - Unix & Linux Stack Exchange

    xargs: 'ls' terminated by signal 13 [duplicate] Ask Question Asked 7 years, 3 months ago Modified 6 years, 8 months ago

  6. Piping commands after a piped xargs - Unix & Linux Stack Exchange

    Jun 12, 2015 · The xargs -I {} will take the ' {}' characters from the standard input and replace them with whatever comes in from the pipe. This means you could actually replace {} with any …

  7. How can I find files and then use xargs to move them?

    How can I find files and then use xargs to move them? Ask Question Asked 12 years, 3 months ago Modified 5 years, 4 months ago

  8. sed in conjuction with xargs and grep not working

    Jun 3, 2024 · xargs by default expects an input in a very specific format where arguments are meant to be separated by whitespace characters (the list of which depends on the xargs …

  9. bash - xargs: run a command for each line and separate …

    Apr 4, 2023 · To answer the: xargs: run a command for each line and separate arguments with whitespace? in the subject, that's exactly what the -L ¹ option is for. xargs -L1 cmd << 'EOF' 1 …

  10. xargs - multi threaded find exec - Unix & Linux Stack Exchange

    Sep 2, 2019 · xargs -P 16 (since I struggled to find more details online or understand the man page section) It does your command on 16, or the number you pass to -P, of the inputs at a …