Any Linux/Unix gurus in here?

intruder

SOHH Class of 2003 and CASUAL sports fan
Supporter
Joined
May 4, 2012
Messages
30,456
Reputation
4,506
Daps
58,185
Reppin
Love
I need help with touch command.

I fukked up something and have to re-write the timestamps for almost 300,000+ files on a production system.

Here is the problem: The storage server where the files are stored had the wrong time. I adjusted the time but the application is still reading the timestamp but i need to increase it by a certain amount of time.

Looking at the man page for touch i see the -t option but it requires a date. I CANNOT use a specific date for all 300,000 files. I just need to increase their timestamp date by a certain amount of days (by 1,217 days). Kinda like the -mtime + 1217 option would work in a find command.

Any ideas?
 
Top