-
Notifications
You must be signed in to change notification settings - Fork 15
dos2unix
Mahmoud Ben Hassine edited this page Nov 21, 2015
·
4 revisions
Replaces Windows line separators (CRLF) by Unix line separators (LF).
N/A
Stream<String> stream = Stream.of("a\r\n", "b\r\nc\r\n");
UnixStream.unixify(stream)
.dos2unix()
.to(stdOut()); // prints "a\n", "b\nc\n"
// Or
UnixStream.from(stream)
.pipe(dos2unix())
.to(stdOut()); // prints "a\n", "b\nc\n"
// Or
stream
.map(Functions.dos2unix())
.forEach(System.out::println); // prints "a\n", "b\nc\n"
UnixStream is created with passion by Mahmoud Ben Hassine