[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

A little off topic...laptop date.

On Nov  8, Sale, Nigel (Nigel_Sale@adc.com) wrote:
 > Sorry if this is off topic, but this is the most relevant list i subscribe to,
 > I have a rather old 486 laptop which had a bit of a funny turn the other day and advanced the date by 20 years !. It was a couple of days before i realised and now i have a load of files with are dated 20 years in the future.
 > Does anybody know how i can first find all these files ? I'm sure i should be able to use the find comand but can't find the right options,
 > And secondly, any way to subract 20 yeats from a files creation date ?

To find them, you could set your system date to 1 day after that
future date and user find / -mtime -1 -print.

You can use touch to set the file time to be whatever you want.

Neil L. Roeth

Reply to: