0
I want to delete multiple files and record those file name into another file. I am using following command
$find . -name '*.log' -mtime +2 -ls -exec rm {} \; >deletelog
it is working fine. But the problem is if I run the same command again, It will totally replace the file that I named as deletelog. How to append the log so that I can run the command multiple times, and log will append on the file?
1Replace
>deletelog
with>>deletelog
– DavidPostill – 2019-04-07T12:00:27.430