aboutsummaryrefslogtreecommitdiff
path: root/applets_sh/dos2unix
diff options
context:
space:
mode:
Diffstat (limited to 'applets_sh/dos2unix')
-rwxr-xr-xapplets_sh/dos2unix5
1 files changed, 5 insertions, 0 deletions
diff --git a/applets_sh/dos2unix b/applets_sh/dos2unix
new file mode 100755
index 000000000..0fd5206f6
--- /dev/null
+++ b/applets_sh/dos2unix
@@ -0,0 +1,5 @@
1#!/bin/sh
2# TODO: use getopt to avoid parsing options as filenames,
3# and to support -- and --help
4[ $# -ne 0 ] && DASH_I=-i
5sed $DASH_I -e 's/\r$//' "$@"