[email protected] wrote:
> OK, now that there is a base64(1) command, I could have sworn I also saw
> a quoted-printable command too [or else I wouldn't have deleted mine so
> fast :-(].
> OK, I restored mine
> $ cat bin/qp-decode
> #!/bin/sh -e
> #jidanni *** replacement for mime-codecs package ***
> case $0 in
> *qp-encode) perl -MMIME::QuotedPrint -wne 'print encode_qp($_)';;
> *qp-decode) perl -MMIME::QuotedPrint -wne 'print decode_qp($_)';;
> *base64-encode)perl -MMIME::Base64 -wne 'print encode_base64($_)';;
> *base64-decode)perl -MMIME::Base64 -wne 'print decode_base64($_)';;
> *)exit 88;;
> esac
>
> And as
> $ apt-file search quoted-printable|wc -l
> 8
> aren't coreutils, ("qp" finds even more), I hereby sure wish coreutils
> had one.
GNU recode does that:
$ printf '\0\1'|recode ../QP
=00=01=
$ printf '\0\1'|recode ../QP | recode /QP| od -tx1
0000000 00 01
0000002