aboutsummaryrefslogtreecommitdiff
path: root/applets_sh/dos2unix
blob: 0fd5206f6400570b0032a3794108d8150bf6546c (plain)
1
2
3
4
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$//' "$@"