[X-Unix] Question about grep

Our Pal Al opa at avalon.rockefeller.edu
Wed Mar 17 07:08:35 PST 2004


On 3/17/04 8:32 AM, "Brent Baisley" <brent at landover.com> wrote:

> My first question is why would you want to keep years worth of backup
> logs?


Exactly. I *don't*, but Retrospect doesn¹t have any customization options
for exporting the backup report (separate from the log, btw). It exports
everything and that's it, hence processing needs to be afterwards. Lopping
off the last X number of lines in the file will truncate to either something
with too much info or perhaps not enough, depending on how much you grab or
cut. It's days that useful, specifically the last 7 for me, whether the
number of failures and clients makes the file 2 lines or 2000.

I know there's a 'date' command in the shell and was hoping there was some
simple way to combine it with grep to get what I need, but I'm at my limit
there. There may even be other "time aware" commands besides 'date' but I
have no clue if they even exist or not.

That jog anything to anybody else?

- al


-- 
If two men agree on everything, you may be sure that only
one of them is doing the thinking.

                                                 -  Lyndon B. Johnson
http://home.nyc.rr.com/attilan/wonderfal/   <--    NEW location!



More information about the X-Unix mailing list