In my penultimate (next to last) line from all the files in a specific directory, I have a list of integers like this:
[142356, 12436546, 131434645, 56464]
I would like to read this penultimate line from all the files from that specific directory, and using it again as a list in my new python script containing the same values, of course. So I will be able to process again these lists.
All the text filenames start by "chr" and finish by ".txt"