![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 {} \;
|
|
#3
|
|||
|
|||
|
thank you jim.
|
|||
| Google The UNIX and Linux Forums |