Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jplindstrom (594)

jplindstrom
  (email not shown publicly)

Journal of jplindstrom (594)

Tuesday January 11, 2005
08:48 AM

useful find

[ #22658 ]

The find command is very useful but very, very poorly documented. Not that the options aren't mentioned in the man page, but that doesn't help me understand how to use the program. I had to Google to find the correct usage of "-perm +u=w".

What's missing is a couple of examples of the options in actual use. Like... the SYNOPSIS section of Perl module docs! That's really something they got right.

So to find files not added or checked in to SourceSafe (yuck!), here's how to do it. List using less, but don't wrap lines (-S)

find . -perm +u=w ! -type d ! -name 'vssver.scc' ! -name '*~' ! -name '#*#' | less -S

Unfortunately there's a FIND.EXE in Windows as well. Renaming FIND.EXE to WFIND.EXE doesn't work because Windows seems to restore that file automatically. I put Cygwin before c:\winnt in the PATH.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.