Re: Reading a file from a specified range

From: mkarja (mmmc_reptail_at_hotmail.com)
Date: 10/25/04


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


Relevant Pages

  • Re: Reading a file from a specified range
    ... The command that produces the error may be, ... | more than three rows above the error message. ... | character instead of going backwards some defined number of rows. ...
    (comp.lang.cpp)
  • Re: formatting input boxes
    ... 'Error Message ... you also need to validate each section, ... 'Check that the 5th character is the letter "Q". ... command, but thought it would be easier to explain that way. ...
    (microsoft.public.excel.programming)
  • Re: What does this do?
    ... line:1: ^ backslash not last character on line ... Read the error message. ... Note that it tells you what command is ... What command does awk see? ...
    (comp.unix.shell)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... Or issue the command; ... > and got the error message file or folder not found. ... in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... > get the error message that you, in fact, did get. ... > Or issue the command; ... > in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)