I read the help read page, but still don\'t quite make sense. Don\'t know which option to use.
help read
How can I read N lines at a time using Bash?
That is much more simple! :)
cat input-file.txt | xargs -L 10 ./do_something.sh
or
cat input-file.txt | xargs -L 10 echo