On Sat, Mar 5, 2022 at 2:46 AM Saint Michael <vene...@gmail.com> wrote: > > I have a bunch of *.csv files. > I need to process each line of the separately, so I do > function() { any process } > export -f function > cat *.csv | parallel --colsep ',' function "{1} {2} {3} {4} {5} {6} {7}" > > The question is: is this the best possible way to do this?
If the function can only read a single input per run, then yes. If the function can read more lines, look at --pipe. > I don't like to use "cat" cat is built for concatenating files (this is what the name comes from). /Ole