diff options
author | Pere Orga <gotrunks@gmail.com> | 2012-02-09 18:23:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-09 18:23:33 +0100 |
commit | d0222503ff9ff264efa74f6de651b308d20a05b8 (patch) | |
tree | 7eb01024fd36dfebc5f303a3cc408766925b1604 /applets_sh/dos2unix | |
parent | 594db1e62a060a0a5646f6840112189fd0ce3b81 (diff) |
applets_sh/*: Add a few more examples of "shell applets"
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'applets_sh/dos2unix')
-rwxr-xr-x | applets_sh/dos2unix | 5 |
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 @@ +#!/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$//' "$@" |