Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sed, a stream editor - 5. About the (non-)limitations on line length

Media Vault

Software Library

Restoration Projects

Artifacts Sought

sed, a stream editor - 5. About the (non-)limitations on line length

Go to the first, previous, next, last section, table of contents.


5. About the (non-)limitations on line length

For those who want to write portable SED scripts, be aware that some implementations have been known to limit line lengths (for the pattern and hold spaces) to be no more than 4000 bytes. The POSIX.2 standard specifies that conforming SED implementations shall support at least 8192 byte line lengths. GNU SED has no built-in limit on line length; as long as SED can malloc() more (virtual) memory, it will allow lines as long as you care to feed it (or construct within it).


Go to the first, previous, next, last section, table of contents.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026