Re: Using a file's modification date in the filename
- From: Jürgen Exner <jurgenex@xxxxxxxxxxx>
- Date: Thu, 24 Apr 2008 02:23:38 GMT
cca.johnson@xxxxxxxxx wrote:
I want to be able to rename a file and prepend the file's modification
date at the front of the file. For example:
with a file named testme.txt and a modification date of April 1, 2006,
I want the renamed file to be named 20060401-testme.txt
What I can do is get the modification date using ctime, but it I can't
figure out how to format the output.
It seems like Date::Formatter will probably do what you are looking for.
jue
.
- Follow-Ups:
- Re: Using a file's modification date in the filename
- From: Gerry Ford
- Re: Using a file's modification date in the filename
- References:
- Using a file's modification date in the filename
- From: cca . johnson
- Using a file's modification date in the filename
- Prev by Date: Re: use of DBI; I am getting multiple error messages mixed in with the correct output.
- Next by Date: Re: Using a file's modification date in the filename
- Previous by thread: Using a file's modification date in the filename
- Next by thread: Re: Using a file's modification date in the filename
- Index(es):
Relevant Pages
|