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

Re: [cobalt-users] Re:Help Navigating Directories



"cbtrussell" <cbtrussell@xxxxxxxxxxx> wrote:
> > find / -path '/home/files' -prune -o -type f -printf
> > "%m\t%s\t%U\t%u\t%G\t%g\t%AY-%Am-%Ad %AT\t%CY-%Cm-%Cd %CT\t%TY-%Tm-%Td
> > %TT\t" -exec md5sum {} \;  > files_regular
>
> Hmm. This will take a bit of careful exploration on my part - thanks again
> Steve.

Brandon,

Sorry I pasted in such a complex looking piece of code.  I was on my way out
the door and it was the quickest thing I could find on the box I had an open
shell to.  In case anyone's wondering what the long one-liner above does -
it cycles through a directory and the directories below it and generates a
tab-delimited file containing a lot of file attributes.  Here's a one line
command that will solve your problems.  Run it from cron if you want.  If
you're cautious like I am you may want to create a temporary directory
containing files and directories, change the path in the command and test
there first.

find /home/sites/siteXY -type f -exec chmod 664 {} \;

> PS - Thanks for the email the other day. I'm slammed this week, I'll reply
> soon.

No apology necessary - I can relate.  <g>

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/