I've got a fairly simple problem here: I have a piece of text which is one giant big line (~150,000 characters). No line breaks, and it's a fixed-length flat file (i.e. it was produced by a
COBOL program), so introducing line breaks is not only awkward, it's actively unhelpful if I'm trying to make changes to the file.
Most text editors struggle with a single line that big (
less doesn't like it,
Gedit doesn't like it,
nano doesn't like it, I've heard
vim doesn't like it, etc), though they do work.
Does anyone have any suggestions for an editor that would be better suited to the data I'm working with? It's only a single line, but it still causes more problems than a 1GiB+ text file with normal-length lines would...
Would be even better if it would work with
EBCDIC and not barf when it encounters null bytes, or mangle them when writing back out (some fields are binary-encoded decimals).
Please note, this isn't about files that are big in terms of raw size - the file contains only a single line - but about the fact that most editors aren't optimized to cope with very long lines.