View Single Post
Old 06-04-2008, 07:57 AM  
testpie
Mostly retired
 
testpie's Avatar
 
Industry Role:
Join Date: Apr 2006
Location: UK
Posts: 3,231
Quote:
Originally Posted by bigalownz View Post
thanks for your help
will it change the date on all files?
as i just want .html to change
As darksoul said, the script I provided will change all files regardless of extension, and is admittedly exhaustive on CPU and I/O resources because it has to keep opening and closing files. You would be better off taking darksoul's advice and doing the following:
Quote:
Originally Posted by darksoul View Post
go to the directory where the files are and run this command (ssh)
Code:
find . -name "*.html" -print0|xargs -0 touch

P.S. the php script above changes all files regardless of extension
As for me, one day I'll lock myself in a room and force myself to learn the ins and outs of Linux... one day...
__________________

Affiliates: DogFart ~ Domain parking: NameDrive ~ Traffic broker: Traffic Holder
testpie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote