On Sat, Jul 24, 2010 at 1:18 AM, Rony gnulinuxist@gmail.com 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?
$ find /path/of/dir -user user1 -o -user user2 -o -user user3 should work just fine.
HTH.
-- Regards,
Rony.
GNU/Linux ! No Viruses No Spyware Only Freedom.