using --pipe -N<int>
I can send a given number of lines as an input of job started by parallel
. But how can I accomplish to run several jobs with different arguments given with :::
on each chunk?
Let's take this little input file:
A B C
D E F
G H I
J K L
Furthermore let's define to pipe every two line to a parallel
job. And on them the command cut -f<int>
should be executed with column number given as input arguments to parallel like ::: {1..3}
So for the given example the output would look like this
A
D
B
E
C
F
G
J
H
K
I
L
I'v tried this command:
cat input.txt|parallel --pipe -N2 'cut -f{1}' ::: {1..3}
But the output is this:
A
D
I
L
What I'm missing?
fin swimmer