Suppose I have this textfile:
Generation #1:
trash_jsdbjsabnf
trash_nsdjklfndsnf
trash_jlsndfknsf
...
trash_akjsdlkjasdasd
Game_List:
game = 111
game = 222
game = 333
Generation #2:
trash_jsdbjsabnf
trash_nsdjklfndsnf
trash_jlsndfknsf
...
trash_slajdlaskjdlas
Game_List:
game = 119
game = 262
game = 323
...
...
Generation #500:
trash_jsdbjsabnf
trash_nsdjklfndsnf
trash_jlsndfknsf
...
trash_jkansdklnalsda
Game_List:
game = 323
game = 213
game = 211
I was wondering if there is a simple way to extract only the Generation # and the corresponding list of game under Game_List. That is, ignoring all the trash lines, which literally is about 50,000 lines.
Thank you so much in advance.