Linux command
xleak 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open an Excel file in the interactive TUI
xleak [report.xlsx]
Open a specific sheet by name
xleak [report.xlsx] --sheet "[Q3 Results]"
Export a spreadsheet to CSV
xleak [data.xlsx] --export csv > [output.csv]
Export a spreadsheet to JSON
xleak [data.xlsx] --export json > [output.json]
List all tables in a workbook
xleak [workbook.xlsx] --list-tables
View formulas by default
xleak [data.xlsx] --formulas
说明
xleak is a terminal-based Excel viewer that supports .xlsx, .xls, .xlsm, .xlsb, and .ods files. Features include full-text search across cells, formula display, lazy loading for large files, clipboard support, and export to CSV and JSON.
参数
- --sheet _NAME|NUMBER_
- Open a specific sheet by name or index.
- -n, --num-rows _COUNT_
- Limit the number of rows displayed. `0` shows all rows.
- -w, --width _WIDTH_
- Set column width.
- -H
- Enable horizontal scrolling with auto-sized columns.
- --formulas
- Display cell formulas instead of computed values by default.
- --export _FORMAT_
- Export the spreadsheet to stdout in `csv`, `json`, or `text` (tab-separated) format.
- --table _NAME_
- Extract a specific named Excel table (.xlsx only).
- --list-tables
- List all tables in the workbook and exit.
- --config _PATH_
- Use a custom configuration file instead of the default at `~/.config/xleak/config.toml`.
FAQ
What is the xleak command used for?
xleak is a terminal-based Excel viewer that supports .xlsx, .xls, .xlsm, .xlsb, and .ods files. Features include full-text search across cells, formula display, lazy loading for large files, clipboard support, and export to CSV and JSON.
How do I run a basic xleak example?
Run `xleak [report.xlsx]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --sheet _NAME|NUMBER_ do in xleak?
Open a specific sheet by name or index.