bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

request for feature ... mark+reset ... not a bug.


From: Paul Matthews
Subject: request for feature ... mark+reset ... not a bug.
Date: Mon, 13 Aug 2001 21:26:16 +1000

Doing some very serious data processing on some very large files over
here. Unlike all the other scripting languages gawk can actually keep up
with the hand crafted C code ... which I suppose says more about the C
code than gawk ....

So ... awk can handle the projects, restricts, summaries, sorts (via
unix sort), n-way merges, lookup tables and lots of other cool and
stuff. But can't do the joins. No good getting unix join to do the work
cause it's broken for more than one key.

To do the joins I need to 'mark' a line of input and later 'reset' to
that line. [I would assume that marking a line on a non-seekable file is
not an error, attempting a reset however would be.] So the code would
look like ....

  while( (getline line < filename) > 0 )
  {
    if( ...want to reset to this line ... )
      mark(filename)
    ... other boring processing ...
    reset(filename)
  }

For you consideration.


[while where doing the wishlist any chance of ...

  getbytes var 3 < filename  # read next 3 bytes

see ... I have these block encoded ebcdic mainframe files and ... ]

--
Paul Matthews




reply via email to

[Prev in Thread] Current Thread [Next in Thread]