aboutsummaryrefslogtreecommitdiff
path: root/wrappers/dos2unix
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/dos2unix')
-rwxr-xr-xwrappers/dos2unix5
1 files changed, 5 insertions, 0 deletions
diff --git a/wrappers/dos2unix b/wrappers/dos2unix
new file mode 100755
index 00000000..9eab6644
--- /dev/null
+++ b/wrappers/dos2unix
@@ -0,0 +1,5 @@
+#!/bin/sh
+#HELP usage: dos2unix [FILE...]\n\nRemove DOS newlines
+
+[ $# -ne 0 ] && DASH_I=-i
+sed $DASH_I -e 's/\r$//' "$@"