Commits

Stepan Koltsov committed 89f2e63

using perl

Comments (0)

Files changed (2)

+#!/usr/bin/env perl -n
+
+if (/\r/) {
+    print;
+} else {
+    chomp;
+    print;
+    print " ";
+}
+
+# vim: set ts=4 sw=4 et:

gen-sample-file.sh

+#!/bin/sh -e
+
+printf "first line\r\n"
+printf "second line\nseparated\nby\nnewlines\r\n"
+printf "third line\r\n"
+printf "fifth\nline\r\n"
+
+# vim: set ts=4 sw=4 et: