Prints an excel worksheet to the console.
It takes an excel (xslx) file as input, and prints all rows and columns of a given worksheet to the STDOUT. This is very handy when you want to automate stuff.
Download from the releases folder and put into your path.
Print the first sheet of an Excel file to STDOUT:
./catexcel example.xlsx
Print a sheet with a given name:
./catexcel -sheet "2nd sheet" example.xlsx
Given you have an Excel file with the columns 'firstname, lastname, haircolor, birthday'. Search for everyone who is called Smith and has brown hair Print firstname and birthday.
catexcel example.xslx | awk '/Smith\tbrown/' | cut -f 1,4
- Make sure you have golang installed.
- Checkout the repository.
- Install the required dependencies:
go get github.com/360EntSecGroup-Skylar/excelize
xlsx 4. Building on Windows (for both Windows and Unix) from Powershell:
$Env:GOOS = "windows"; $Env:GOARCH = "amd64"; go install
$Env:GOOS = "linux"; $Env:GOARCH = "amd64"; go install
- 1.0.0
- First release
Benedikt Eckhard – @derhackler – public@derhackler.at
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/derhackler/catexcel
- Fork it (https://github.com/derhackler/catexcel/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request