Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Epoch get all files with same day

by jethro (Monsignor)
on Aug 15, 2012 at 11:31 UTC ( #987544=note: print w/ replies, xml ) Need Help??


in reply to Epoch get all files with same day

Where do you have problems? With the localtime() function you can get the day and month out of the epoch time. Or use one of the many date modules like DateTime. For the copying of the files you might use the shell with system("cat $sourcefile >> file_${date}.txt");


Comment on Re: Epoch get all files with same day
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-09-22 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (191 votes), past polls