Sunday, 15 March 2009

Change Dates

I had a problem recently with a camera that has serious battery problems and never has the correct date. It screws up the filing of photos later.

As usual, there was a simple solution: the linux command touch - which I only ever used for creating empty files.

To change the dates on all files in a folder to the 17th of March 2009 at teatime it is as simple as:

touch * -t "200903171800"

0 comments:

iantheteacher

Planet ILUG