I have a script that works removing files x days and keep the folders. I'm trying to send an email once its done with the deletion. Any advice? Current script is below:
#!/bin/bash
find /testftp/* -type f -mtime +10 -exec rm {} \;
UBJECT="FTP Cleanup"
EMAIL="[email protected]"
EMAILMESSAGE="IT WORKS"
/bin/mail -s "$SUBJECT" "$EMAIL" "$EMAILMESSAGE"
SUBJECT
, notUBJECT
.