xargs example linux
Example 1: xargs example
echo 'one two three' | xargs mkdir
ls
one two three
Example 2: xargs in linux
$ find Pictures/tecmint/ -name "*.png" -type f -print0 | xargs -0 tar -cvzf images.tar.gz
echo 'one two three' | xargs mkdir
ls
one two three
$ find Pictures/tecmint/ -name "*.png" -type f -print0 | xargs -0 tar -cvzf images.tar.gz