aboutsummaryrefslogtreecommitdiff
path: root/bin/u2d.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/u2d.sh')
-rw-r--r--bin/u2d.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/u2d.sh b/bin/u2d.sh
index 9f4e800a..31030341 100644
--- a/bin/u2d.sh
+++ b/bin/u2d.sh
@@ -16,8 +16,7 @@ for fn ; do
# $r within it to get a literal carriage return; the escape characters
# prescribed for ed(1) by POSIX are very limited
ed -s -- "$fn" <<EOF || ex=1
-g/[^$r]\$/ s/\$/$r/
-g/^\$/ s/\$/$r/
+,s/\$/$r/
w
EOF
done