From d0222503ff9ff264efa74f6de651b308d20a05b8 Mon Sep 17 00:00:00 2001 From: Pere Orga Date: Thu, 9 Feb 2012 18:23:33 +0100 Subject: applets_sh/*: Add a few more examples of "shell applets" Signed-off-by: Pere Orga Signed-off-by: Denys Vlasenko --- applets_sh/unix2dos | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 applets_sh/unix2dos (limited to 'applets_sh/unix2dos') 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/' "$@" -- cgit v1.1