On Tue, May 17, 2011 at 12:36:08AM -0500, neubyr wrote:
How do I pass xargs input one line at a time to subsequent command?
xargs is the wrong tool for this job.
$ awk '{ print $0 }' gem.list.1 | xargs -L 1 -0 -I name sudo gem install name
while read line do sudo gem install $line done < gem.list.1