bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I have an improvement for the find command


From: Murphy, Thomas
Subject: I have an improvement for the find command
Date: Mon, 27 Jul 2009 10:41:19 -0400

Hi, 
  I have compiled in a change to the find command at my local site.  I
needed to find files/directories with acl access to a particular group,
so I added in some -acl support 


In the case of the file named "out" in this example:

ny630-lxdesk20:tmurphy~/workspace2/getacl$ getfacl out
# file: out
# owner: tmurphy
# group: user
user::rw-
group::rw-
group:sys:--x
group:trader:--x
group:mlpadmin:--x
mask::rwx
other::---




the command :
find . -acl mlpadmin 

would report the file

(note the new -acl PATTERN in the help section)

ny630-lxdesk20:tmurphy/tmp/find/bin$ ./find --help
Usage: ./find [path...] [expression]
default path is the current directory; default expression is -print
expression may consist of:
operators (decreasing precedence; -and is implicit where no others are
given):
      ( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2

      EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
options (always true): -daystart -depth -follow --help
      -maxdepth LEVELS -mindepth LEVELS -mount -noleaf --version -xdev
tests (N can be +N or -N or N): -amin N -anewer FILE -atime N -cmin N

      -cnewer FILE -ctime N -empty -false -fstype TYPE -gid N -group
NAME
      -ilname PATTERN -iname PATTERN -inum N -ipath PATTERN -iregex
PATTERN
      -links N -lname PATTERN -mmin N -mtime N -name PATTERN -newer FILE
-acl PATTERN

      -nouser -nogroup -path PATTERN -perm [+-]MODE -regex PATTERN
      -size N[bckw] -true -type [bcdpfls] -uid N -used N -user NAME
      -xtype [bcdpfls]

actions: -exec COMMAND ; -fprint FILE -fprint0 FILE -fprintf FILE FORMAT
      -ok COMMAND ; -print -print0 -printf FORMAT -prune -ls


Report bugs to <address@hidden>.





Where can I submit my code changes for peer review?


Regards
Tom Murphy
######################################################################
The information contained in this communication is confidential and
may contain information that is privileged or exempt from disclosure
under applicable law. If you are not a named addressee, please notify
the sender immediately and delete this email from your system.
If you have received this communication, and are not a named
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
######################################################################




reply via email to

[Prev in Thread] Current Thread [Next in Thread]