Skip to content

dos2unix

Mahmoud Ben Hassine edited this page Oct 13, 2015 · 4 revisions

dos2unix

Synopsis

Replaces Windows line separators (CRLF) by Unix line separators (LF).

Parameters

N/A

Example

Stream<String> stream = Stream.of("a\r\n", "b\r\nc\r\n");

UStream.unixify(stream)
   .dos2unix()
   .to(stdOut()); // prints "a\n", "b\nc\n"

// Or

UStream.from(stream)
   .pipe(dos2unix())
   .to(stdOut()); // prints "a\n", "b\nc\n"
Clone this wiki locally