TCUCODEC(1)

๐Ÿ’– TCUCODEC ๐Ÿ’–

okay bestie, welcome to the tcucodec era โ€” this is the encoder/decoder Swiss Army knife from Tokyo Cabinet, and honestly? it does everything. ๐ŸŽ€


โœจ NAME โœจ

tcucodec โ€” popular encoders and decoders ๐Ÿ’…


๐ŸŒˆ DESCRIPTION ๐ŸŒˆ

so like. the command tcucodec is a whole tool for using encoding and decoding features. you call it in the following formats, and file is your input file โ€” if you leave it out, it reads standard input instead. no cap. ๐Ÿซถ

tcucodec url [-d] [-br] [-rs base] [file]

URL encoding, and the decoding of it too. ๐ŸŒ

tcucodec base [-d] [file]

Base64 encoding and its decoding. โœจ

tcucodec quote [-d] [file]

quoted-printable encoding and its decoding. ๐Ÿ“ง

tcucodec mime [-d] [-en name] [-q] [-on] [-hd] [-bd] [-part num]
[file]

MIME encoding and its decoding. ๐Ÿ“จ

tcucodec hex [-d] [file]

hexadecimal encoding and its decoding. ๐Ÿ”ข

tcucodec pack [-d] [-bwt] [file]

Packbits encoding and its decoding. ๐Ÿ“ฆ

tcucodec tcbs [-d] [file]

TCBS encoding and its decoding. ๐Ÿ‘‘

tcucodec zlib [-d] [-gz] [file]

ZLIB encoding and its decoding. ๐Ÿ—œ๏ธ

tcucodec bzip [-d] [file]

BZIP2 encoding and its decoding. ๐ŸŒ€

tcucodec xml [-d] [-br] [file]

Processes XML. by default it escapes meta characters. ๐Ÿช„

tcucodec cstr [-d] [-js] [file]

C-string escaping, and the unescaping of it. ๐Ÿงต

tcucodec ucs [-d] [-un] [-kw str] [file]

Converts a UTF-8 string into a UCS-2 array. ๐ŸŒธ

tcucodec hash [-crc] [-ch num] [file]

Calculates the hash value. by default it uses the MD5 function. ๐Ÿซง

tcucodec cipher [-key str] [file]

Stream cipher, and the deciphering of it. ๐Ÿ”

tcucodec date [-ds str] [-jl num] [-wf] [-rf]

Processes a date string. by default it prints the current UNIX time. โฐ

tcucodec tmpl [-var name value] [file]

Template serialization, slay. ๐ŸŽ€

tcucodec conf [-v|-i|-l|-p]

Prints some configurations. โš™๏ธ


๐Ÿ’… OPTIONS ๐Ÿ’…

okay the options all do the following, and yes there are a LOT of them, we're listing every single one because we don't gatekeep:

  • -d โ€” perform decoding (unescaping), not encoding (escaping). ๐Ÿชž
  • -br โ€” break up URL or XML into elements. ๐Ÿงฉ
  • -rs base โ€” specify the base URL and resolve the relative URL. ๐Ÿ”—
  • -en name โ€” specify the input encoding, which is UTF-8 by default. ๐Ÿ”ค
  • -q โ€” use quoted-printable encoding, which is Base64 by default. ๐Ÿ“ฎ
  • -on โ€” output the charset name when decoding. ๐Ÿท๏ธ
  • -bd โ€” perform MIME parsing and output the body. ๐Ÿซ€
  • -hd โ€” perform MIME parsing and output the headers. ๐Ÿ—‚๏ธ
  • -part num โ€” perform MIME parsing and output the specified part. โœ‚๏ธ
  • -bwt โ€” convert by BWT as preprocessing. ๐Ÿ”„
  • -gz โ€” use GZIP format. ๐Ÿ—œ๏ธ
  • -crc โ€” use CRC32 function. โœ…
  • -js โ€” use JSON compatible format. ๐Ÿงพ
  • -un โ€” perform UCS normalization. ๐Ÿงผ
  • -kw str โ€” generate KWIC string. ๐Ÿ”
  • -ch num โ€” use consistent hashing function. ๐ŸŽฏ
  • -key str โ€” specify the cipher key. ๐Ÿ—๏ธ
  • -ds str โ€” specify the time. ๐Ÿ•ฐ๏ธ
  • -jl num โ€” specify the jet lag. โœˆ๏ธ
  • -wf โ€” format the output in W3CDTF. ๐Ÿ“…
  • -rf โ€” format the output in RFC 1123 format. ๐Ÿ“†
  • -var name value โ€” specify a template variable. ๐Ÿท๏ธ
  • -v โ€” show the version number of Tokyo Cabinet. ๐Ÿ‘‘
  • -i โ€” show options to include the headers of Tokyo Cabinet. ๐Ÿ“ฅ
  • -l โ€” show options to link the library of Tokyo Cabinet. ๐Ÿ”—
  • -p โ€” show the directory path of the commands of Tokyo Cabinet. ๐Ÿ“
heads up bestie: this command returns 0 on success, and another value on failure. check that exit status, fr fr. ๐Ÿ˜ญ

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

tcutest(1), tcumttest(1), tcutil(3), tokyocabinet(3) โ€” go read your siblings, they're iconic too. ๐Ÿซถ


and that's the whole page, babes ๐Ÿ’– this was the Tokyo Cabinet tcucodec man page, dated 2012-08-18, rendered as a man page by โ€” you guessed it โ€” Man Page. mwah, go encode something. ๐Ÿ’…โœจ๐ŸŽ€