[CentOS] xargs with max each line / argument
Stephen Harris
lists at spuddy.orgTue May 17 10:11:16 UTC 2011
- Previous message: [CentOS] xargs with max each line / argument
- Next message: [CentOS] xargs with max each line / argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -- rgds Stephen
- Previous message: [CentOS] xargs with max each line / argument
- Next message: [CentOS] xargs with max each line / argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list