I have a file with ~ 1000 lines that looks like this:
ABC C5A 1 CFD D5G 4 E1E FDF 3 CFF VBV 1 FGH F4R 2 K8K F9F 3 ... etc
I would like to select 100 random rows, but with 10 values ββfor every third column (so that random 10 rows from all rows with a value of β1β in column 3, random 10 rows from all rows with a value of β2β in column 3, etc. d.).
Is this possible with bash?
Abdel source share