pipe2excel sends the contents of STDIN or specified files to Microsoft Excel as CSV data.
- Each CSV value is inserted as a string.
- However, values matching /^\-?[1-9]\d*(\.\d*[1-9])?$/are treated as numbers.
 
- However, values matching 
- The CSV encoding is automatically detected, supporting both UTF-8 and the system's current code page.
You can install pipe2excel in the following ways:
Download the binary package from the Releases page and extract the executable.
go install github.com/hymkor/pipe2excel@latest
scoop install https://raw.githubusercontent.com/hymkor/pipe2excel/master/pipe2excel.json
or
scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install hymkor/pipe2excel
C:\> pipe2excel foo.csv bar.csv
C:\> type foo.csv | pipe2excel
This launches Microsoft Excel and opens the CSV files.
C:\> pipe2excel -o foo.xlsx foo.csv
It does not start Microsoft Excel. Instead, it creates foo.xlsx directly.
- -f string→ Field Sperator (default- ,)
- -o string→ Save to a file and exit immediately without starting Excel
- -v→ Show version information
- Fixed package dependency issues.
- Moved or copied some packages into the internaldirectory.
- Changed package owner to hymkor.
- Added Linux support (requires the -ooption).
- #1 Fixed a panic when reading CSV from STDIN and using -o.
- When -o FILENAMEis specified, use tealeg/xlsx instead of go-ole/go-ole.
- Removed -sand-qoptions; their features are now enabled by-o.
- Added the -foption to set the field separator.
- No longer treats negative integers as strings.
- Fixed COM release leak.
- Display help if no arguments are provided and STDIN is not redirected.
- Only treats values matching /^[1-9]\d*(\.\d*[1-9])?$/as numbers.
- Inserted all cells as strings.
- Automatically detected encoding (UTF-8 or system code page) and removed the -uoption.
- Added the -voption to display the version.
- Initial prototype.

