Saari Development

Ali Rizvi’s Technical Blog as a Professional Software Development Engineer

Archive for March 2007

Find all writeable files in a directory tree

without comments

I needed to find if I forgot to p4 edit (or add) any of the files I was working with and needed to find all writeable files in my current directory structure (recursively). I did a quick search and found a newsgroup entry that helped (referenced below) but here is what you need to do :

find . -type f -perm +200

4 is for readable(r)
2 is for writeable (w)
1 is for executable (x)

Do

man find

and search for perm to find more of what more you can do.

Ref: http://www.cygwin.com/ml/cygwin/2003-05/msg00502.html
Here is a better reference: Searching for files by permission

Written by imsaar

March 20, 2007 at 7:28 pm

Posted in Uncategorized