in reply to Re^2: Reading files, skipping very long lines...
in thread Reading files, skipping very long lines...
Maybe you could try replacing the output file with a named pipe (man mkfifo). The program outputs to the pipe, and you have a filter program read from the pipe.
Or depending on the predictability/frequency of the output, you could compare the file size once, then later if the file size isn't greater than $MAX_DIFFERENCE, you know you don't have to worry about it.
Or patch the program to not insert long lines.
|
|---|