Re: Reading a file from a specified range
From: mkarja (mmmc_reptail_at_hotmail.com)
Date: 10/25/04
- Next message: Richard Herring: "Re: defining new types"
- Previous message: DJ: "Trouble with Strings"
- In reply to: mkarja: "Re: Reading a file from a specified range"
- Next in thread: Chris \( Val \): "Re: Reading a file from a specified range"
- Reply: Chris \( Val \): "Re: Reading a file from a specified range"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Oct 2004 01:56:42 -0700
>
> Thanks a million. This works just as I needed.
> Three hip, hip, hurraahs to you :)
>
> ----
> mkarja
Or at least I thought it worked as I needed.
I was under the impression that the log file would be pretty
much the same allways. It turned out it isn't. I had looked at
several log files and they all were the same, except the command
and error messages, so I thought they all were basically the
same. The command that produces the error may be, like I said
earlier, three lines above the first error message or it may be
four rows above it. It might even be five or two or whatever
rows above it, I don't know.
So the example given by Chris won't work correctly if the row is
more than three rows above the error message. I've modified it so
that I can get the command even if it's four rows above the error
but this way if the command is perhaps two rows above the error
then there will be some unnecessary rows in the result if I go
up four rows.
Is it possible to do the example that Chris gave so that when
the /*** is found it would search backwards looking for some
character instead of going backwards some defined number of rows.
In this case the character would be < character, because the row
that the command is starts with the < character.
Thanks for your help so far and if you can help me with this I
think I'll be allright for a while, until I run into another
wall and need some help :)
---- mkarja
- Next message: Richard Herring: "Re: defining new types"
- Previous message: DJ: "Trouble with Strings"
- In reply to: mkarja: "Re: Reading a file from a specified range"
- Next in thread: Chris \( Val \): "Re: Reading a file from a specified range"
- Reply: Chris \( Val \): "Re: Reading a file from a specified range"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|