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