Question : Unix command to find and delete files older than xx days

I need to find and delete files older than 90 days.

I tried this on the command line, but it says "incomplete statement":
find /slice6/imedw/bad -mtime +90 -exec rm -r {}\;

which I found here:
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_20654225.html?sfQueryTermInfo=1+command+file+find+old+unix

which says "find <directory> -mtime +14 -exec rm -r {} \; "

once we get it working, then I need it to run from inside a Korn-shell script

Answer : Unix command to find and delete files older than xx days

You need to give space after {}
Random Solutions  
 
programming4us programming4us