Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Remove old files from Dir > 60 days
Name: babu.dwh Date: June 6, 2007 at 19:49:37 Pacific OS: UNIX CPU/Ram: 512 MB RAM Product: 2006
Comment:
Hello,
We are saving some files in the UNIX directory with the naming convention "ABC_yyyymmddhhmi.txt". Our requirement is to remove files from this directory which are 60 days old. Any help to script down this is very much appreciated.
Summary: I tested your idea and unfortunately, that didn't work either. Received the error: ./badhosts:0: bad number I am open to any ideas, not just sed if anyone else has an idea as to how to remove old hos...
Summary: I look for the Unix command that remove the files from the current directory which are more than 7 days old. Could you help me. Thanks in advance ...