summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2000-08-14 21:08:08 +0000
committerDaniel Robbins <drobbins@gentoo.org>2000-08-14 21:08:08 +0000
commitb4e22bd77b6548cbd6f90482d149a0b243baa7e5 (patch)
treede4e09a414dbde3ca1b67e18a68b0c140d3a24e3 /sys-apps/sed/files
parent*** empty log message *** (diff)
downloadgentoo-2-b4e22bd77b6548cbd6f90482d149a0b243baa7e5.tar.gz
gentoo-2-b4e22bd77b6548cbd6f90482d149a0b243baa7e5.tar.bz2
gentoo-2-b4e22bd77b6548cbd6f90482d149a0b243baa7e5.zip
added two little utils. Will roll into main sed at some point
Diffstat (limited to 'sys-apps/sed/files')
-rwxr-xr-xsys-apps/sed/files/dos2unix3
-rwxr-xr-xsys-apps/sed/files/unix2dos3
2 files changed, 6 insertions, 0 deletions
diff --git a/sys-apps/sed/files/dos2unix b/sys-apps/sed/files/dos2unix
new file mode 100755
index 000000000000..debe71409ba6
--- /dev/null
+++ b/sys-apps/sed/files/dos2unix
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+exec /usr/bin/sed -e 's/\x0D$//' ${*}
+
diff --git a/sys-apps/sed/files/unix2dos b/sys-apps/sed/files/unix2dos
new file mode 100755
index 000000000000..a6362f5cb883
--- /dev/null
+++ b/sys-apps/sed/files/unix2dos
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+exec /usr/bin/sed -e 's/$//' ${*}
+