I can iterate through a file, a.txt, performing an arbitrary command (echo in this example) on each line by doing
xargs -n1 echo < a.txt
o