Hasty Briefsbeta

Show HN: TapeHead – A CLI tool for stateful random access of file streams

5 days ago
  • #command-line
  • #debugging
  • #file-utility
  • TapeHead is a command-line utility for random access of file streams.
  • It runs a REPL session allowing commands like read, write, and seek within a file.
  • Useful for debugging drivers or tasks involving file streams.
  • Install via cargo: `cargo install --git https://github.com/emamoah/tapehead.git`.
  • Originally created to debug a scull driver, later rewritten and published.
  • Named 'TapeHead' after 'seeker' was unavailable as a crate name.
  • File details include path, size, and permissions (RW, RO, WO).
  • Prompt shows current position, bytes read/written, and supports commands like read, write, seek, help, and quit.
  • Seek syntax includes current position (.), absolute/relative positions, and end-of-file references.
  • Examples include reading/writing at specific positions or offsets.