aboutsummaryrefslogtreecommitdiff
path: root/wrappers/unix2dos
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-01-22 20:33:15 -0600
committerRob Landley <rob@landley.net>2012-01-22 20:33:15 -0600
commit5b67c38f86318bfa8ff8e631aa9c5e0ea1a70c64 (patch)
tree0e81b3df4326f46f3144e46b0198d6bf4a1a1995 /wrappers/unix2dos
parent4c2484f46f969414b2aaf08300d80a81f18edcb1 (diff)
downloadtoybox-5b67c38f86318bfa8ff8e631aa9c5e0ea1a70c64.tar.gz
Add three commands that can be done as simple shell scripts (one sed is in, anyway), and don't need to be implemented in C.
Diffstat (limited to 'wrappers/unix2dos')
-rwxr-xr-xwrappers/unix2dos5
1 files changed, 5 insertions, 0 deletions
diff --git a/wrappers/unix2dos b/wrappers/unix2dos
new file mode 100755
index 00000000..68c18593
--- /dev/null
+++ b/wrappers/unix2dos
@@ -0,0 +1,5 @@
+#!/bin/sh
+#HELP usage: unix2dos [FILE...]\n\nAdd DOS newlines
+
+[ $# -ne 0 ] && DASH_I=-i
+sed $DASH_I -e 's/$/\r/' "$@"