xargs is a command line of findutils package. It is not so common for new user, but it is a very useful tools, let me pick an example to show the usage. Bare in mind, xargs is a kind of combo command use together with other command through pipeline.
I have a list of links to download, to download all, i put those links to a file. When i cat, i puts it line by line to standard output. Then I can pipeline and ask xargs to pass it one by one to wget.
cat list.txt | xargs wget -c
It is recommended to put -0 for xargs for filename, coz sometimes the filename consist of symbol.So
cat list.txt | xargs -0 wget -c
It doesn’t seems to be working, thanks durian for commenting this out. If your links consist of symbol like single quote ( ‘ ) or other reserved symbols, I ll suggest you to edit your link manually by putting escape (\).
Let say my original link look like this
Observered the “You’re”, change it to “You\’re”