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 :
2 is for writeable (w)
1 is for executable (x)
Do
Ref: http://www.cygwin.com/ml/cygwin/2003-05/msg00502.html
Here is a better reference: Searching for files by permission
find . -type f -perm +2004 is for readable(r)
2 is for writeable (w)
1 is for executable (x)
Do
man findand 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