Smart execute with xargs


if you have a large file that is too large to pass to xargs, you can bring it up into chunks.  For instance:

cat file.txt | xargs -L 3 echo

 

will execute echo on 3 lines at a time.