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.

Greetings,

What have you come up with so far?

I'm a newbie and don't know how to go along with this.

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 :stuck_out_tongue: ) 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?

1 Like