diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 14:19:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 14:19:16 +1300 |
commit | 6527e0d74b2d62c9fd76d6ae357227887f89c4f1 (patch) | |
tree | d542cc6f42a9d898954491e871c07441814552cc /bin | |
parent | Merge branch 'feature/sd2u-su2d-d...' into develop (diff) | |
parent | Make d2u(1df)/u2d(1df) like their stream analogues (diff) | |
download | dotfiles-6527e0d74b2d62c9fd76d6ae357227887f89c4f1.tar.gz dotfiles-6527e0d74b2d62c9fd76d6ae357227887f89c4f1.zip |
Merge branch 'feature/d2u-u2d-con...' into develop
* feature/d2u-u2d-consist:
Make d2u(1df)/u2d(1df) like their stream analogues
Diffstat (limited to 'bin')
-rw-r--r-- | bin/d2u.sh | 2 | ||||
-rw-r--r-- | bin/u2d.sh | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -16,7 +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\$// +,s/$r\$// w EOF done @@ -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 |