The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
chmod command manoj.solaris SUN Solaris 7 12-07-2007 02:44 PM
ftp most recently modified file ahmedwaseem2000 Shell Programming and Scripting 6 02-27-2007 10:22 AM
Trying to Copy Files Changed Recently scotbuff Shell Programming and Scripting 4 01-23-2007 06:04 AM
Numeric CHMOD for .js files Texan UNIX for Advanced & Expert Users 3 02-11-2006 03:15 PM
Finding modified files rhayabusa UNIX for Dummies Questions & Answers 2 12-16-2004 10:48 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-21-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
Question chmod command for recently modified files

hello! is there a way for me to use the chmod command to change permissions for several files all at once -based on the fact that these files were all most recently modified TODAY ?

I can't use a wildcard on their filenames because the filenames are varied. But I was hoping I could somehow do this on the commonality that they were all modified today. Is there anyway to say this to Unix?

~polka
Reply With Quote
Forum Sponsor
  #2  
Old 08-22-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
This finds all the files in a directory that are less than 24 hours old, and runs a chmod 777 filename on each one - the {} thing is the filename
Code:
find . -type f -mtime -1 -exec chmod 777 {} \;
Reply With Quote
  #3  
Old 08-30-2006
Registered User
 

Join Date: Aug 2006
Posts: 2
thank you jim.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0