Grouping

Hi all,
I am using following command:

perl program.pl input.txt output.txt  CUTOFF 3 > groups_3.txt

containing program.pl, two files (input.txt, output.txt) and getting output in groups_3.txt:

But, I wish to have 30 files corresponding to each CUTOFF ranging from 0 to 30 using the same program.pl, two files (input.txt, output.txt), because with each value of CUTOFF I will get different number of groups in each output file. In other words, I want to call program.pl using input.txt output.txt with different CUTOFF.

Thanks

In bash it seems easy:

$ for x in {0..30}; do echo $x; done
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$
1 Like