use command line to change last modified time of files
by Pedroski from LinuxQuestions.org on (#50RQC)
The gf had a lot of old exams to scan to pdf and watermark. The pdfs have between 4 and 8 pages.
I helped her with a bit of Python.
The boss thinks she is scanning each page by hand, like 200 pages, cutting, joining tidying ....
Now she says, the boss will see that they all have the same 'last modified time'.
How can I specifically change the last modified time from Python or bash?
I would like to set the 'last modified time' to some random number of minutes apart, around 30 minutes.
I don't really want to modify them, just change the 'last modified' time.
Can that be done? Best way to do this?


I helped her with a bit of Python.
The boss thinks she is scanning each page by hand, like 200 pages, cutting, joining tidying ....
Now she says, the boss will see that they all have the same 'last modified time'.
How can I specifically change the last modified time from Python or bash?
I would like to set the 'last modified time' to some random number of minutes apart, around 30 minutes.
I don't really want to modify them, just change the 'last modified' time.
Can that be done? Best way to do this?