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