Advertisement

08.22.2007 at 03:00PM PDT, ID: 22780897
[x]
Attachment Details

Script to delete folders which are 30 days older than current date

Asked by hcdev in KornShell (ksh), Unix Systems Programming, Bourne Shell (sh)

Tags: delete, older, than, script, date

Hi,

I need a script which shall purge folders which are older than 30 days from the current date.
Hence for example if today is 08/22/2007 then anything which is before 07/23/2007 should be deleted.
The script needs to take account of february (leap year), 31 days etc.
An actual example shall be helpful.
The script needs to be in korn shell.
The servers on which the files are located are SUN OS Servers.

Thanks in advanceStart Free Trial
[+][-]08.22.2007 at 04:42PM PDT, ID: 19750494

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: KornShell (ksh), Unix Systems Programming, Bourne Shell (sh)
Tags: delete, older, than, script, date
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 3
Solution Grade: B
 
 
[+][-]08.23.2007 at 11:35AM PDT, ID: 19756669

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 11:54AM PDT, ID: 19756822

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 11:59AM PDT, ID: 19756866

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 02:00PM PDT, ID: 19757750

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 02:52PM PDT, ID: 19758107

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 04:37PM PDT, ID: 19758744

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.23.2007 at 08:52PM PDT, ID: 19759621

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.24.2007 at 04:02AM PDT, ID: 19761032

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.24.2007 at 03:00PM PDT, ID: 19765796

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.27.2007 at 05:15PM PDT, ID: 19779521

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.27.2007 at 07:52PM PDT, ID: 19780082

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628