On Sat, Jul 24, 2010 at 01:18:33AM +0530, Rony wrote:
> Hello,
> 
> I want to use the find command inside a directory which has user1, 
> user2, user3 and user4 in the group to either look for files owned by 
> user1 or user2 or user3
> 
> or
> 
> find files not owned by user4.
> 
> The -user option allows me only one name. I tried spaces, comas between 
> user_names but the syntax is returned invalid. I can't find the 
> not_owned option either. The -nouser option is for users not in the 
> /etc/passwd file which is not my case. Checked out google too but cannot 
> find any possibility for multi-user options in the same line. Even tried 
> -user user1 -user user2 -user user3 together but not working. If I can 
> write one 'find' line for all the users, I don't have to repeat it per 
> user.
> 
> Any tips or tricks?
 

Try if it accepts regex style inputs like - "-user [[user1,user2]]"
Not completely sure of this... you would like to read the man page of
regex first (that is if you have not done so already :P )


-- 
Regards,
Nitesh Mistry
www.mistrynitesh.com


-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/J/IT/O>TW d+(-) s+:+>: a- C+ UL>+++ P L++>+++ !E W++ N* o? K? w--- O? M-- V? 
PS+() PE(++)(-) Y+ PGP+ t 5? X R tv+ b+ DI D G e+++>++++ h-- !r y?
------END GEEK CODE BLOCK------

Attachment: signature.asc
Description: Digital signature

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to