Search code examples
linuxunixhp-ux

find: -exec not terminated with ';'\\ when trying to delete some old files


i am using the following syntax on an HPUX machine, and have no luck removing older files, getting the following error: find: -exec not terminated with ';'\

find /path/ -type f -mtime +90 -name "*.tgz" -exec rm {} \ ;\

any suggestions?


Solution

  • Looks like there is an empty space between \ and ;