I'm looking for a simple script that renames the files in a directory to sequential numbers. Based on creation date of the files.
For Example
sadf.jpg to 0001.jpg, wrjr3.jpg to 0002.jpg and so on, the number of leading zeroes depending on the total amount of files (no need for extra zeroes if not needed).