Replacing ownership of certain files
Is there any working commandline alternative to
# find /some/dir -group xxx -user yyy | chown xxxxx:yyyyy The main purpose is to replace ownership and goup of certain files in subdirectories. Or nevertheless I need to write shell script for that simple operation ? |
chown -R (for recursive) should work.
Hmmm. No that would change them all. You want to just change those owned by certain users and leave the rest alone, right? |
find /some/dir -group xxx -user yyy -exec chown xxxx:yyyy {}\;
|
Quote:
Thanks ! |
Quote:
|
http://linux.die.net/man/1/chown
Quote:
|
All times are GMT -5. The time now is 09:23 PM. |