I want to find and delete files in a directory that are older than x days. I've looked at man and I want to make sure I have the correct interpretation of it before I delete these files.
If I do this:
$> find ./ -mtime +10 -type f
would that find all files older than 10 days?
then I'd do:
$> rm `find ./ -mtime +10 -type f`
If I do this:
$> find ./ -mtime +10 -type f
would that find all files older than 10 days?
then I'd do:
$> rm `find ./ -mtime +10 -type f`