I need to, using a UNIX command line script, get 11 random lines from a file that are grouped together. For instance
Random source file:
1
2
3
4
5
6
7
8
9
10
11
############
12
13
14
15
16
17
18
19
20
21
22
Running ./myscript should give me:
1
2
3
4
5
6
7
8
9
10
11
or
12
13
14
15
16
17
18
19
20
21
22
Tested
With
first time
second time