View Single Post
Old 2022-05-11, 07:53   #13
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

32·52·7 Posts
Default

Quote:
Originally Posted by Batalov View Post
bash
Code:
N=3
for i in `seq 1 $N`; do 
  echo '[Worker #'$i']'; awk 'a++%'$N'=='$i'-1' input.txt
 done > output.txt



Perfect!
I made two scripts, one for 8 worker one for 12 worker
Thanks!
pepi37 is online now   Reply With Quote