I have a file with summarised contents as follows:
Pattern1 random random random Pattern2
Pattern1 random random
Pattern