qprint(1)
β¨ qprint(1) β the glow-up β¨
okay bestie, gather round π this is qprint, from the General Commands Manual, and she encodes/decodes files as RFC 1521 MIME Quoted-Printable. iconic behaviour, honestly.
πΈ NAME πΈ
qprint β encode / decode file as RFC 1521 MIME Quoted-Printable
π SYNOPSIS π
qprint -d|-e [ options ] [ infile [ outfile ] ]
π¦ DESCRIPTION π¦
so. the MIME (Multipurpose Internet Mail Extensions) spec β RFC 1521 and all her successors β defines a whole mechanism for encoding text that's mostly printable ASCII but might be hiding characters that absolutely cannot show up as 7-bit ASCII. think accented letters in the ISO 8859 Latin-1 character set, or non-printable characters that would simply confuse mail transfer agents. messy. π
qprint is the command line utility that encodes and decodes files in this format. she can live inside a pipeline as an encoding or decoding filter, and honestly that's her most common gig β part of an automated mail processing system, iykyk. with the right options, qprint can encode pure binary files, but ngl she's a poor choice for that since she may inflate the size of the file by as much as a factor of three π. the Base64 MIME encoding is a way better choice for that kind of data. periodt.
π OPTIONS π
-b,--binaryβ treat the input (when encoding) or the output (when decoding) as pure binary, and process end of line sequences as binary data. encoding and decoding a file with this option preserves the exact sequence of bytes in the input, but does not do the translation of end of line sequences that Quoted-Printable encoding normally performs. no cap.--copyrightβ print program copyright information. β¨-d,--decodeβ decodes the input, which was previously created byqprint, to recover the original input file. π«Ά-e,--encodeβ encodes the input into an output text file containing itsqprintencoding.-i,--ebcdicβ encode ASCII characters for which no equivalent exists in the EBCDIC character set. this renders files more portable when they get transported to EBCDIC systems. π-n,--noerrcheckβ suppress error checking when decoding. by default, the moment she hits a non white space character that doesn't belong to theqprintset, or discovers the input file is incorrectly padded to a multiple of four characters,qprintissues an error message and terminates processing with exit status 1. the-noption suppresses even this rudimentary error checking: invalid characters are silently ignored and the output truncated to the last three valid octets if the input is incorrectly padded. she's just gonna look away π-p,--paranoidβ every character in the input file will be encoded as an escape sequence. you must also specify the-bor--binaryoption if you want end of line sequences escaped as well. this option is a last resort when there's no other way to transmit the file, but an encoding explicitly designed for binary data such as Base64 is a much more economical choice. π₯-u,--helpβ print how-to-call information.--versionβ print program version information.
π EXIT STATUS π
qprint returns status 0 if processing was completed without errors, 1 if an I/O error occurred or errors were detected in decoding a file which indicate it is incorrect or incomplete, and 2 if processing could not be performed at all due, for example, to a nonexistent input file.
π FILES π
if no infile is specified, or infile is a single `-`, qprint reads from standard input; if no outfile is given, or outfile is a single `-`, output is sent to standard output. the input and output are processed strictly serially; consequently qprint may be used in pipelines. the program can process files of any size supported by the system containing text lines of arbitrary length. slay. π
π BUGS π
encoding a file with a large percentage of non-ASCII characters may dramatically increase its size. this is inherent in the design of Quoted-Printable encoding. not her fault, it's the format's whole vibe.
please report bugs and documentation errors to bugs@fourmilab.ch. π«Ά
β SEE ALSO β
base64(1), uuencode(1), RFC1521
π§ AUTHOR π§
John Walker
http://www.fourmilab.ch/
this software is in the public domain. permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. this software is provided `as is` without express or implied warranty.
this is version 1.1 of qprint. the current version of this program may be downloaded from http://www.fourmilab.ch/webtools/qprint.
and that's the whole page, bestie π brought to you by the 4th Berkeley Distribution, dated 16 DEC 2014 β mwah, take care of her, she's a legend πβ¨
π¦ where this page comes from
- arch rolling: qprint 1.1-3 Β· custom:Public Domain
- debian bookworm: qprint 1.1.dfsg.2-2.1
- debian trixie: qprint 1.1.dfsg.2-2.3
- nixos 26.05: qprint 1.1
- nixpkgs unstable: qprint 1.1
- ubuntu jammy: qprint 1.1.dfsg.2-2.1
- ubuntu noble: qprint 1.1.dfsg.2-2.1
- ubuntu questing: qprint 1.1.dfsg.2-2.3
- ubuntu resolute: qprint 1.1.dfsg.2-2.4
- ubuntu stonking: qprint 1.1.dfsg.2-2.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms