| DATUI-FORMATS(1) | User Commands | DATUI-FORMATS(1) |
datui-formats - list the format specs and dictionaries (FIX, DBC) on the search path
datui formats datui formats check SPEC [FILE]
List the format specs and dictionaries (FIX, DBC) on the search path: each one's name, what it matches, its file, and the copies it overrides.
Format specs are TOML files that describe a binary format, or a family of delimited text files; datui-formats(7) describes them. The search path is CONFIG/formats, then $DATUI_FORMATS_PATH, then [formats] path in the config.
CONFIG is $DATUI_CONFIG_DIR when it is set, else $XDG_CONFIG_HOME/datui (~/.config/datui) on Linux, ~/Library/Application Support/datui on macOS and %APPDATA%\datui on Windows.
List the format specs and dictionaries datui finds.
datui formats
Check a format spec of two one-byte fields against a file of two records, and print the rows it reads.
pairs.toml
name = "demo.pairs"
match = { glob = ["*.pairs"] }
[records]
fields = [{ name = "a", type = "u1" }, { name = "b", type = "u1" }]
make_pairs.py
# Two records of two one-byte fields: (1, 2) and (3, 4).
with open("t.pairs", "wb") as f:
f.write(bytes([1, 2, 3, 4]))
python3 make_pairs.py && datui formats check ./pairs.toml t.pairs
datui(1), datui-formats(7)
The datui documentation: <https://derekwisong.github.io/datui/>
Report bugs at <https://github.com/derekwisong/datui/issues>.
Derek Wisong and the datui contributors.
Copyright © 2026 Derek Wisong
datui is free software under the MIT License.
| 2026-10-06 | datui 0.4.0 |