|
FIND command
I am trying to delete all *.log files in current folder. Something like this.
find . -name "*.log" -atime +3 | xargs -i {} rm {}
But the problem is, it deletes *.log files in subdirectories too. I do not want to do that.
My question is "How can I exclude subdirectories in FIND command?"
Please help me!
Thank you
|