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 )