Shell script: date yesterday
Posted on 2005-04-29
I have a direcotry /var/log/compnaam/! In this directory all log files from different machines are logged in this format:
Now i'm trying to write a script that greps files with a specfic date (the date of the day before, so lets say it's 30-04-05, then i want t he script to get 29-04-05).
so it needs to grep all files with the date of yesterday, after that it needs to be zipped ( won't be a problem ).
Who can help me out since i'm not a genius shell scripter and don't have much time to open a book and start learning.
thnx in advance