Hello dear monks,
It's raining and my head is dead. I have a text file that contains SEC filings information with dates.
For each year, I want to create a separate text file
For instance if the year is 1996 then I want to have a new separate text file that only contains SEC filings information for the year 1996
Is there an efficient way for me to do that instead of opening 10 file handles and using a bunch of if statements like if(year==1996) print $_ FILE;
Thank you for your time and consideration