in reply to Reading files, skipping very long lines...
If there's a newline (and you're not in the middle of throwing away a superline), print everything up to the newline, and read $MAX-(number of chars after the newline) so that you have a total of $MAX characters to look at. Repeat from the top.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading files, skipping very long lines...
by davidrw (Prior) on Sep 29, 2005 at 17:29 UTC |