in reply to Re^10: How do I display only matches
in thread (SOLVED) How do I display only matches
Note that on *nix, the "default text I/O layer" is probably effectively :raw and :crlf is not used unless requested, because the Unix convention is that text files store only <LF> at end-of-line and "\n" is <LF> in POSIX.
And the reason that you are supposed to specifically say "\015\012" instead of "\r\n" is that the latter is the current platform's notion of "carriage return/line feed" and might not be the ASCII CR/ASCII LF that is supposed to be used on the network. (I seem to recall that classic MacOS interpreted "\r\n" as "\012\015" as one example. I suspect EBCDIC systems may be even more bizarre.)
Edited 2019-10-01 by jcb: Clarify wording to address haukex's nitpick.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: How do I display only matches (updated)
by haukex (Archbishop) on Sep 28, 2019 at 08:10 UTC | |
by jcb (Parson) on Sep 28, 2019 at 21:34 UTC | |
by Anonymous Monk on Sep 30, 2019 at 03:50 UTC | |
by Anonymous Monk on Sep 29, 2019 at 04:04 UTC | |
by soonix (Chancellor) on Sep 30, 2019 at 06:55 UTC | |
by jcb (Parson) on Oct 01, 2019 at 23:57 UTC | |
by haukex (Archbishop) on Oct 02, 2019 at 08:03 UTC | |
|