Logs to be gzipped


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 6 Days Ago
Logs to be gzipped

Dear Friends,


I need to zip all the file in the log folder with date and time, except current days files and files with .gz extension.


Regards,
Search4u2003.
# 2  
Old 6 Days Ago
Greetings,

What have you come up with so far?
# 4  
Old 5 Days Ago
Well there are many options, then it depends of your architecture as unix command argument may differ, so for a start you should tell on what OS you are dealing with and the shell you use only we are not going to do the work for you as you will learn nothing, as all the people I know except a very few, we tend to be lazy and look for the most obvious and easy way out:
For that it means to see the content of that log directory as if there are only 2 files of the day why should we bother using the command find (IMHO I am guilty if others dont agree Smilie ) as for a newbie that command seems to have an obscure and complicated syntax, then see how many .gz files we have...
How would you do that?
This User Gave Thanks to vbe For This Post:
wisecracker (5 Days Ago)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
If I ran perl script again,old logs should move with today date and new logs should generate. Sanjeev G Shell Programming and Scripting 1 03-14-2018 03:27 PM
Need logs between timestamp ashare.ahmed Shell Programming and Scripting 2 11-17-2015 12:28 PM
Passing resulted string name of a gzipped file as an argument to another piped tool amarn UNIX for Advanced & Expert Users 2 04-20-2015 03:21 PM
Regarding mailing of logs SankalpS UNIX for Advanced & Expert Users 2 06-05-2012 07:06 PM
regarding logs KAREENA18 UNIX Desktop Questions & Answers 3 01-07-2012 01:51 AM
view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first) slashdotweenie UNIX for Dummies Questions & Answers 4 04-12-2011 03:37 PM
Syslog not having all su logs plmachiavel Solaris 3 10-12-2010 03:16 PM
Grep yesterday logs from weblogic logs harish.parker Shell Programming and Scripting 3 11-04-2008 08:00 AM
how to trace the logs vivek_damodaran HP-UX 3 05-13-2008 12:09 PM
filtering the logs prvnrk Shell Programming and Scripting 5 04-08-2008 09:57 PM
logs lordmod UNIX for Advanced & Expert Users 1 02-13-2007 05:41 PM
Logs charbel Shell Programming and Scripting 5 05-04-2006 07:59 AM
logs cubicle^dweller UNIX for Dummies Questions & Answers 6 10-29-2002 06:42 PM
Logs jtapia UNIX Desktop Questions & Answers 4 03-28-2002 11:12 AM