octa --tail¶
Print the last N rows of a file, the way Unix tail does for text
files, except Octa understands the binary formats too. Default
20 rows.
Synopsis¶
| Flag | Default | Meaning |
|---|---|---|
-n N, --lines N |
20 |
Number of trailing rows to print. Must be ≥ 0. |
-f, --format |
tsv |
Output format (see CLI overview). |
--rows N\|all |
all | Limit the read to N rows (see Performance). |
Examples¶
Default: last 20 rows as TSV¶
Custom row count¶
JSON output for downstream tools¶
Performance¶
--tail reads the whole file, however long, because the last rows of part of a
file are not the last rows of the file. On a very large file it needs the memory to
hold it. --rows N limits that on purpose: it then shows the end of the rows it read,
and a warning on stderr says so.
For non-streaming formats (Excel, SQLite, JSON, etc.) the whole table is loaded into memory and the last N rows are sliced off.
Notes¶
-n 0prints just the header row.- For multi-table sources (SQLite, DuckDB), Octa loads the first table.
- Like
--head, TAB and newline characters in cells are replaced with spaces in TSV output; use-f csvor-f jsonfor lossless output.
See also¶
octa --head: the first N rows.octa --sample: a reproducible random sample.- MCP
tailtool: the same access pattern via MCP.