zzat(1)

πŸ’– zzat(1) β€” the manual, but make it slay πŸ’–

okay so bestie, listen up πŸŽ€ this is zzat, a General Commands Manual situation, and honestly? she's lowkey iconic and nobody talks about her. let's fix that.


✨ NAME ✨

zzat β€” concatenate files using different instruction sequences πŸ¦‹

like cat but she went to therapy and came back with options about how she reads things. periodt.


🌸 SYNOPSIS 🌸

zzat [-AbdeEntTv] [-r loops] [-x sequence] [FILE]...
zzat -l | --list
zzat -h | --help
zzat -V | --version

πŸ’… DESCRIPTION πŸ’…

zzat reads files sequentially and writes them to standard output. the plot twist? YOU get to decide which sequence of library calls is used to seek and read the data. like, you're the director. main character energy fr fr. πŸ‘‘

zzat is primarily used as a debugging tool for zzuf, because it can emulate different programs' ways to read files. it's giving "method acting, but for file I/O." 🎭


πŸŽ€ OPTIONS πŸŽ€

  • -A, --show-all β€” equivalent to -vET. the whole glow-up bundle ✨
  • -b, --number-nonblank β€” number nonempty output lines. blank lines stay unnumbered, they're on their own journey πŸ™ˆ
  • -d, --debug β€” output debugging information. spill the tea, bestie πŸ«–
  • -e β€” equivalent to -vET.
  • -E, --show-ends β€” display $ at end of each line. yes, literally a dollar sign, she's fancy πŸ’…
  • -n, --number β€” number all output lines. every single one. no line left behind πŸ₯°
  • -r, --repeat=loops β€” concatenate all files loops times. again and again and again, obsessed with repetition, we love a consistent queen πŸ”
  • -t β€” equivalent to -vT.
  • -T, --show-tabs β€” display TAB characters as ^I. tab girlies, we see you 🫢
  • -v, --show-nonprinting β€” use ^ and M- notation, except for LFD and TAB. the weird invisible characters get exposed, no more hiding πŸ’€
  • -x, --execute=sequence β€” read a file or a stream using the instruction sequence specified in sequence. this is the whole point, bestie, this is the moment 🌟

Instructions are executed sequentially until the end of the program. End-of-file is not an exit condition, except where the feof keyword is used:

fread(1,10); feof(1); fread(1,10)

Loops are permitted using the repeat keyword. Again, feof can be used to prematurely break out of a loop:

repeat(10000, fgetc() feof(1))

Instructions can be separated by spaces, commas or semicolons. A list of all available instructions and control keywords can be obtained using this command:

zzat -l

If no sequence is specified, the following default sequence is used:

repeat(-1, fread(1,32768), feof(1))
  • -l, --list β€” display the list of supported keywords and functions and exit. the menu, the lineup, the whole roster πŸ“‹βœ¨
  • -h, --help β€” display a short help message and exit. she's helpful AND humble 🌈
  • -V, --version β€” output version information and exit. 🏷️

πŸ”₯ EXAMPLES πŸ”₯

Read the first 1000 bytes of f, then exit:

zzat -x 'fread(1,1000)' f

Read the first four bytes of f, using four different instructions:

zzat -x 'getc(),fgetc(),getc_unlocked(),_IO_getc()' f

Read f entirely, by calling getc() repeatedly until end-of-file is reached:

zzat -x 'repeat(-1, getc(), feof(1))' f

Read f entirely, in chunks of 32768 bytes until end-of-file is reached:

zzat -x 'repeat(-1, fread(1,32768), feof(1))' f

πŸ‘€ SEE ALSO πŸ‘€

  • zzuf(3)
  • libzzuf(3)

πŸ’œ AUTHOR πŸ’œ

Copyright Β© 2002-2015 Sam Hocevar <sam@hocevar.net>.

zzat and this manual page are free software. They come without any warranty, to the extent permitted by applicable law. You can redistribute them and/or modify them under the terms of the Do What the Fuck You Want to Public License, Version 2, as published by the WTFPL Task Force. See http://www.wtfpl.net/ for more details. honestly? the most unhinged and correct license. she said do whatever. queen behavior. πŸ‘‘

zzuf's webpage can be found at http://caca.zoy.org/wiki/zzuf. An overview of the architecture and inner works is at http://caca.zoy.org/wiki/zzuf/internals.


and that's the whole page, bestie πŸ’– this was zzat version 0.15, dated 2015-01-06 β€” a vintage queen who still eats every single time. go read some files weirdly, you deserve it πŸ¦‹βœ¨πŸŽ€