https://github.com/mitchpaulus/excelchop
Command line utility to extract data out of Microsoft Excel files.
https://github.com/mitchpaulus/excelchop
command-line conversion converter excel spreadsheet terminal xlsx
Last synced: 8 months ago
JSON representation
Command line utility to extract data out of Microsoft Excel files.
- Host: GitHub
- URL: https://github.com/mitchpaulus/excelchop
- Owner: mitchpaulus
- License: agpl-3.0
- Created: 2018-11-17T19:40:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-23T16:36:25.000Z (11 months ago)
- Last Synced: 2025-10-10T21:27:38.148Z (8 months ago)
- Topics: command-line, conversion, converter, excel, spreadsheet, terminal, xlsx
- Language: C#
- Homepage:
- Size: 70.3 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# excelchop
`excelchop` is a command line utility to extract data out of Microsoft
Excel files.
## Motivation
I am an engineer who loves Unix utilities, but I'm forced to work in the
Microsoft environment with Excel spreadsheets being my colleagues
favorite tool. Following the Unix tradition, this program's sole job is
to get information from the Excel file to standard output.
If you get some use out of this please Star it!
# Usage
`excelchop` extracts data out of Microsoft Excel files and sends it to
standard output. From here, you can pipe the data through other filters
to achieve your goals.
By default, `excelchop` will return all the data within the first
worksheet. Using the '-r' option, you can specify a subset range. You
can either specify the range like
`excelchop -r A1:B10 excelfile.xlsx`
or you can allow `excelchop` to automatically find the last row. You can
use the special range syntax `startrow:startcolumn:endcolumn`.
`excelchop -r 2:A:D excelfile.xlsx`
This will start at row 2, extracting data from columns A to D, stopping
once it reaches a row in which all the values are empty or whitespace.
The default delimiter is a tab character and output records are
separated by a Unix newline. `excelchop` also removes any newline
characters within a field.
# Installation
See the [release page](https://github.com/mitchpaulus/excelchop/releases) for downloads.
There are releases for Windows, Linux, and macOS.
For each operating system there is a standalone and framework dependent build.
The self contained versions will run without any other prerequisites, but are larger in size.
The framework-dependent versions require the .NET runtime be already installed.
1. Extract the zip file.
2. Move or symlink the executable file to a location in your `PATH` environment variable.
## Related Projects
- [`xlsx2csv`](https://github.com/tealeg/xlsx2csv)