RM command
Is there a way to do the rm command where I can remove files by owner.
I run the standard ls -al command and I want to be able to remove the files that are owned by me in that current directory. One other step how can I remove files in all directories owned by me Please and thanks I did the google search first guys and a majority of the pages just dealt with the basics like rm -r What I have here is a little more specific....please and thanks. |
On current directory
#find . -group groupname -user username | xargs rm -f {}\; In different directory #find /path -group groupname -user username | xargs rm -f {}\; |
You don't need to use {}\ with xargs.
Should be find /path -group groupname -user username | xargs rm -f or find /path -group groupname -user username -exec rm -f '{}'\; |
Quote:
Quote:
|
My fault :-(
Code:
find /path -group test -user test -exec rm -f '{}' \; |
What space?? (I put the latest version in code tags for clarity)
|
All times are GMT -5. The time now is 11:04 PM. |