zukes
1
I've got a problem how to delete files from specific directory.
I don't want do it recursively but only in specific directory.
So, command like
find /home/dirname/ -mtime +8 -type f -exec rm {} \;
is not for me because this command will remove ifs files in
/home/dirname and all subdirectories.
Does somebody any idea?
okay - what are your requirements? older than 8 days?
cd /home/dirname
find ./* -prune -mtime +8 -type f -exec ls -l {} \;
See if that use of find doesn't give you what you want - then change it to remove files.
zukes
3
Yes, 8 days old.
It was so simple. I'm still beginner
Thank you