I have a file with two columns separated by spaces like this:
potato 5
apple 7
pretzel 9
I want to issue a command on each line like this:
cmd -f potato -n 5
cmd -f apple -n 7
cmd -f pretzel -n 9
Can I get xargs to split the incoming line and pass those arguments to a command? Is xargs even the right command to use here?
