I have a text file split up like so:
field1,field2,field3 xield1,xield2,xield3 dield1,dield2,dield3 gield1,gield2,gield3
Each of these columns will be a parameter to a program, and I would like the program to be called for each line
I was hoping for a loop, something like:
for $i in file command $field2 -x $field3 -PN -$field1 >> output done
What would be the best way to accomplish something like this in bash?