BASH: the dateandtimestamp on files
Can any BASH scripter here help me?
I need to rename a file by its date and time of creation (up to seconds). What is the best method of doing this with BASH script.
The format of the date and time (to seconds) in the filename could be anything that a human can recognize.
example
datetimeoffilecreation = getdatetimeofcreation( file )
mv file datetimeoffilecreation
example
/home/file
/home/08-04-07-21-04-59 #DD-MM-YY-HH-MM-SS
|