aboutsummaryrefslogtreecommitdiff
path: root/bin/sd2u.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sd2u.awk')
-rw-r--r--bin/sd2u.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sd2u.awk b/bin/sd2u.awk
index 02584952..b6e3da89 100644
--- a/bin/sd2u.awk
+++ b/bin/sd2u.awk
@@ -1,3 +1,3 @@
-# Convert DOS line endings to UNIX ones
-{ sub(/\r$/, "") }
-{ print }
+# Convert stream DOS line endings to UNIX ones
+BEGIN { RS = "\r\n" }
+1