Saari Development

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

Find all writeable files in a directory tree

leave a comment »

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

Advertisements

Written by imsaar

March 20, 2007 at 7:28 pm

Posted in general

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: