CBCODEC(1)

πŸ’– CBCODEC(1) πŸ’–

okay bestie, welcome to the cbcodec page of the Quick Database Manager manual, and lemme tell you, this little tool is lowkey iconic ✨ it's giving "swiss army knife but make it encoding" πŸŽ€


🌸 NAME 🌸

cbcodec β€” popular encoders and decoders πŸ’…


✨ SYNOPSIS ✨

cbcodec url [-d] [-br] [-rs base target] [-l] [-e expr] [file]
cbcodec base [-d] [-l] [-c num] [-e expr] [file]
cbcodec quote [-d] [-l] [-c num] [-e expr] [file]
cbcodec mime [-d] [-hd] [-bd] [-part num] [-l] [-ec code] [-qp] [-dc]
[-e expr] [file]
cbcodec csv [-d] [-t] [-l] [-e expr] [-html] [file]
cbcodec xml [-d] [-p] [-l] [-e expr] [-tsv] [file]
cbcodec zlib [-d] [-gz] [-crc] [file]
cbcodec lzo [-d] [file]
cbcodec bzip [-d] [file]
cbcodec iconv [-ic code] [-oc code] [-ol ltype] [-cn] [-wc] [-um] [file]
cbcodec date [-wf] [-rf] [-utc] [str]

πŸ¦‹ DESCRIPTION πŸ¦‹

so this manual page is here to give you the brief rundown of the cbcodec commands, bestie. it's the sparknotes version, no cap πŸ“–βœ¨

cbcodec is a tool for using the encoding and decoding features that Cabin provides β€” that's the whole vibe. you run this command in the format shown up above, and file is the name of the input file. if you don't give it a file? don't even worry, it just reads from the standard input instead 🫢


πŸ’… OPTIONS πŸ’…

here's the lil summary of options, and if you want the full complete description (the director's cut, if you will πŸ‘‘), go check out file:///usr/share/doc/qdbm-doc/spex.html#cabincli.

  • -d β€” do the decoding (unescaping) thing instead of the encoding (escaping) thing. flip the switch, reverse the vibe πŸ”„
  • -br β€” break up the URL into its separate elements, like unbraiding a friendship bracelet πŸŽ€
  • -rs β€” resolve a relative URL, so it knows where it actually lives fr fr
  • -l β€” output that tailing newline, because sometimes a line just needs a little send-off πŸ’«
  • -e expr β€” specify the input data directly, right there in the command, no file needed πŸ’β€β™€οΈ
  • -c num β€” limit how many columns the encoded data gets. keep it cute, keep it contained βœ‚οΈ
  • -hd β€” parse MIME and extract the headers, in TSV format πŸ“¬
  • -bd β€” parse MIME and extract the body, the main character of the message πŸ’ƒ
  • -part num β€” parse MIME and extract a part, just that one specific piece 🧩
  • -ec code β€” specify the input encoding, which is UTF-8 by default 🐣
  • -qp β€” use quoted-printable encoding. note that it's Base64 by default, so this is you switching it up 🌈
  • -dc β€” when decoding, output the name of the encoding instead of the result string. plot twist: it's about the label, not the content πŸ‘€
  • -t β€” parse CSV and convert the data into TSV. tabs and new-lines inside a cell get deleted, sorry bestie, they're gone πŸ’€
  • -html β€” parse CSV and convert the data into HTML, glow-up edition ✨
  • -p β€” parse XML and show tags and text sections with dividing headers, so everything stays organized and readable πŸ“‘
  • -tsv β€” parse XML and show the result in TSV format. characters of tabs and new-lines get URL-encoded 🧬
  • -gz β€” use the GZIP format, compress it up πŸ—œοΈ
  • -crc β€” output the CRC32 checksum as hexadecimal and big endian, because checksums deserve to be seen 🧾
  • -ic code β€” specify the input encoding. by default it gets detected automatically, so it kinda figures itself out πŸ”
  • -oc code β€” specify the output encoding, which is UTF-8 by default 🌟
  • -ol ltype β€” convert line feed characters, with unix (LF), dos (CRLF), and mac (CR). pick your line-ending era πŸ•°οΈ
  • -cn β€” detect the input encoding and show its name. name reveal moment 🎀
  • -wc β€” count the number of characters of the input string of UTF-8 πŸ”’
  • -um β€” output mappings of UCS-2 characters and C strings of UTF-16BE and UTF-8. yes it's a lot, it's doing the most and we love that for it πŸ’–
  • -wf β€” output in W3CDTF format πŸ“…
  • -rf β€” output in RFC 1123 format πŸ“†
  • -utc β€” output the coordinate universal time, the global girly 🌍

πŸ‘€ SEE ALSO πŸ‘€

qdbm(3), cabin(3) β€” go read those too, bestie, they're part of the lore πŸ“š


🫢 AUTHOR 🫢

QDBM was written by Mikio Hirabayashi <mikio@fallabs.com> πŸ’œ

This manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian project (but may be used by others). iconic of them, honestly πŸ‘‘


aaaand that's a wrap! this page is from the Man Page, dated 2005-05-23, and it's the CBCODEC(1) entry β€” still serving after all these years πŸ’…βœ¨ bye bestie, go encode something πŸ¦‹