Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Is a very useful program to take a list and run commands against that list. xargs will take a list of arguments, loop through them and run a command against 1 or more arguments at a time.

Tip

If you like xargs you might want to check out GNU Parallel.

Basic Example

Here is a really straightforward example of using xargs to calculate a MD5 hash on every file in the current directory,

...