I have a list of files in a folder, the format of the file name as follows
coronavirus-tweet-id-2020-06-01-00.txt
coronavirus-tweet-id-2020-06-01-01.txt
coronavirus-tweet-id-2020-06-01-02.txt
coronavirus-tweet-id-2020-06-01-00.txt
coronavirus-tweet-id-2020-06-02-01.txt
coronavirus-tweet-id-2020-06-02-02.txt
Inside the file, data is in the format
1279067346301321217
1279067346209038337
1279067346343038977
1279067346301333507
I wanted to merge all these files to one file(according to date) so the final output should look like
coronavirus-tweet-id-2020-06-01.txt
coronavirus-tweet-id-2020-06-02.txt
Then I wanted to collect 1000 sample the content from the final the file.
I am not getting any clue to merge the file.