Skip to content

xargs | Cheatsheet

xargs is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input.

It converts input from standard input into arguments to a command. Some commands such as grep and awk can take input either as command-line arguments or from the standard input.

Run 10 curl commands in Parallel via xargs

NUM="10";seq ${NUM}|time xargs -I % -n1 -P${NUM} curl -sL