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
Need to turn a SQL select into a delete statement
Visual FoxPro OLE DB Data Provider Problems
How do I map a sharepoint location in VB script to work on Windows 7
Need to route some local recipiants to the internet Exchange Server 2007, SBS
How do I accomplish load balancing in a shared hosting environment using multiple accounts?
Need excel formula
Changing the Install Dir in a MST\MSI
dcpromo Setup Wizard and AD replication
SBS 2003 slow logon and shared file access
How can I access my JSP web application under tomcat server?