I have 79 .txt
files like this:
iRun iDate showerEnergy thetaRad phiRad totalShowers totalParticles e+ e- μ+ μ-
4001 121125 5e+07 1.61401 0.00118607 1 9929166 6909475 1271116 1399686 151330 148624
-1 4001 121125 5e+07 1.61401 0.00118607 2 9929167 6909475 1271116 1399686 151330 148624
it has just 3 lines, 1st the iRun iDate
on this line and 2nd is starting with 4001
and 3rd starting with -1
. And I just want to read these text files' 2nd lines. Also I want to write all 79 text files' 2nd lines in a text file if I read them clearly.