I'm trying to get my Shell
script working, but I keep getting: find: missing argument to '-exec'
#!/bin/sh
echo Hello World
find ./public_html/var/session/ -type f -name "sess*" -mtime +30 -exec rm -f {} \;
echo DONE
I've been trying to find help in these solutions but sadly none of them have solved my problem.
Shell script - find: missing argument to `-exec'
find: missing argument to -exec