Good afternoon everyone,
For security reasons, I need to delete files on a HDD I have to send after the ending of a demo.
I need to find all the files which not end by ".log" and which have been created for 45 days.
After getting the file list, I would like to use the shred command.
It would be like this :
Code:
$ find / -regex '^.*(!(\.log))$' -ctime 45 | xargs shred -fuvz