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 |
5 M | Initial-load row cap for streaming formats (see Performance). |
Examples¶
Default: last 20 rows as TSV¶
Custom row count¶
JSON output for downstream tools¶
Performance¶
For streaming formats (Parquet, CSV, TSV), Octa loads the standard
initial-load row cap (5 million rows by default), then keeps the
last N rows of that loaded window. This means that on a file larger
than the cap, --tail reflects the end of the loaded window, not
necessarily the true end of the file. To tail the genuine end of a
very large file, raise the cap:
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.