Skip to content

📟 Simple Excel (.xlsx) diff tool for texts.

License

Notifications You must be signed in to change notification settings

philipp-meier/xd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xd

MIT License

xd is a simple Excel (.xlsx) diff tool for texts.

Usage

# Run main.go with parameters
go run main.go -f1 ./data/InputA.xlsx -f2 ./data/InputB.xlsx

# Build, "publish" and execute
go build
# env GOOS=linux GOARCH=amd64 go build -o xd_linux_amd64
# env GOOS=windows GOARCH=amd64 go build -o xd_windows_amd64.exe
mv xd /usr/bin
xd -f1 ./data/InputA.xlsx -f2 ./data/InputB.xlsx

# Print help
xd -h

# Measure execution time
time xd -f1 ./data/InputA.xlsx -f2 ./data/InputB.xlsx

Sample output

CAUTION: File ./data/InputB.xlsx has no sheet called "Table21"
Sheet1
- A1: Hello <> Hello1
- B1: World <> World2
Sheet2
- E12: Example <> Test

Limitations

This tool currently requires both Excel files to have the same structure.
Adding a new line in the middle of a sheet would therefore lead to many "differences".