hush/applets_sh/unix2dos

6 lines
155 B
Plaintext
Raw Normal View History

#!/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/' "$@"