perlrush2011 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I have a set of files in a directory with their epoch date/time.
I want to know what is the best way to get all the files under the same day for example:
file1_1344261690 = 6 Aug 2012 15:1:30
file2_1344264601 = 6 Aug 2012 15:50:1
file3_1344318351 = 7 Aug 2012 6:45:51
file4_1344321755 = 7 Aug 2012 7:42:35
I want to gather all files with the same date and put the contents of the files into file large file for example:
file_6aug.txt would contain the contents of file1_1344261690 & file2_1344264601
file_7aug.txt would contain the contents of file3_1344318351 & file4_1344321755
What is the best way to get this done?
Cheers,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Epoch get all files with same day
by jethro (Monsignor) on Aug 15, 2012 at 11:31 UTC | |
|
Re: Epoch get all files with same day
by aitap (Curate) on Aug 15, 2012 at 11:55 UTC | |
|
Re: Epoch get all files with same day
by Anonymous Monk on Aug 15, 2012 at 11:13 UTC | |
by Anonymous Monk on Aug 15, 2012 at 12:43 UTC |