Top "Xargs" questions

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

What's the equivalent of xargs in PowerShell?

The POSIX-defined xargs command takes all of the items it receives from standard input and passes them as command-line arguments …

powershell xargs
xargs doesn't recognize bash aliases

I'm trying to run the following command: find . -iname '.#*' -print0 | xargs -0 -L 1 foobar where "foobar" is an …

command-line xargs bash
When to use xargs when piping?

I am new to bash and I am trying to understand the use of xargs, which is still not clear …

bash xargs
wget or curl from stdin

I'd like to download a web pages while supplying URLs from stdin. Essentially one process continuously produces URLs to stdout/…

unix curl wget stdin xargs
How can I use -0 option to xargs when specifying the input manually?

I have ~/bashpractice$ ls dir3 dir1 I get ~/bashpractice$ xargs ls -l dir1 dir3 dir1: total 0 -rw-r--r-- 1 abc abc 0 2011-05…

bash xargs
How to sleep for 1 second between each xargs command?

For example, if I execute ps aux | awk '{print $1}' | xargs -I {} echo {} I want to let the shell …

linux bash shell xargs
When should xargs be preferred over while-read loops?

xargs is widely used in shell scripting; it is usually easy to recast these uses in bash using while read …

linux bash xargs
Can xargs execute a subshell command for each argument?

I have a command which is attempting to generate UUIDs for files: find -printf "%P\n"|sort|xargs -L 1 echo $(…

bash xargs
How to stop xargs on first error?

I have an pages.txt file with 100 URLs inside. I want to check them one by one and fail on …

linux xargs
how to ping each ip in a file?

I have a file named "ips" containing all ips I need to ping. In order to ping those IPs, I …

macos shell ping xargs