5️⃣xargs
converts from `stdin` to command line arguments
Some commands accept command line arguments only, so we have to use xargs
in order to achieve the desired result
For example
cat filenames.txt | echo
The wouldnt execute without xargs
as echo
accepts command line arguments only


Create files given in a file called `filenames.txt`
cat filenames.txt | xargs touch

Last updated