Saari Development

This blog is intended to be a log of my (Ali Rizvi's) professional ramblings as a software development engineer. I intend to add logs of my experience with different technologies, software, tech books/articles and related stuff from time to time. My intention is to have an archive for my personal use and public benefit.

Tuesday, March 20, 2007

Find all writeable files in a directory tree

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

0 Comments:

Post a Comment

<< Home