Advertisement

04.25.2008 at 03:11PM PDT, ID: 23355114
[x]
Attachment Details

create bash script that archives a file if 1 year old or 1gb is size.

Asked by sugarfreeless in Linux Programming, Linux

Tags: Linux, Bash, bash, n/a, n/a

Experts
 I need to rename a log file to log.YYYY_SEQ on the first day of each year or when the size reaches 1GB.   Obviously the "YYYY" means the current year. And "SEQ" equals the log count.  The SEQ should end at 2 but allow me to increas the number to more if I need to.Start Free Trial
[+][-]04.26.2008 at 07:30AM PDT, ID: 21445648

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.

 
[+][-]04.26.2008 at 08:33AM PDT, ID: 21445839

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: Linux Programming, Linux
Tags: Linux, Bash, bash, n/a, n/a
Sign Up Now!
Solution Provided By: RaulDias
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.27.2008 at 09:43PM PDT, ID: 21451617

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.

 
[+][-]04.28.2008 at 10:25AM PDT, ID: 21455812

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.

 
[+][-]04.28.2008 at 10:37AM PDT, ID: 21455912

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.

 
[+][-]04.28.2008 at 11:31AM PDT, ID: 21456407

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.

 
[+][-]04.28.2008 at 12:10PM PDT, ID: 21456724

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.

 
[+][-]04.28.2008 at 12:27PM PDT, ID: 21456867

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.

 
[+][-]04.28.2008 at 12:30PM PDT, ID: 21456901

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.

 
[+][-]04.30.2008 at 02:35PM PDT, ID: 21474751

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]04.30.2008 at 05:28PM PDT, ID: 21475657

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.

 
[+][-]05.01.2008 at 07:27AM PDT, ID: 21478915

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.

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