Microsoft
Software
Hardware
Network
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-exchang
e.com/Prog
ramming/Sy
stem/Unix_
-
_Posix/Q_
20654225.h
tml?sfQuer
yTermInfo=
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
Visual Basic 6 -- How to check if port is 'established' with Winsock or an alternative?
Writing into text file
How to run 2 separate Logon scripts active directory
Deleting OEM Jobs
cannot connect to ftp site via proxy server
Bigger than 20" standard aspect LCD monitors available?
Delete line with duplicate
SQL Exception when testing ASP.Net application
Several jobs in Symantec Backup Exec 11d say that they are "queued" but the backup process never begins-How can I fix this?
Trend Micro Office Scan Scheduled Scan