简体   繁体   中英

Is there any linux based diff tool for Excel files?

The project I'm working on uses Bitkeeper for version control. I am working on a new feature which involves translating a definition that is in an Excel spreadsheet (edited by an architect) to executable code (which until now has been manually done by a programmer). This Excel file must be part of the code repository, as different branches may have different definitions that will eventually have to be merged.

Bitkeeper does a good job of merging text files. Excel spreadsheets, however, are binary files, which Bitkeeper doesn't know how to handle. Bitkeeper does enable me to merge changes using external tools (external to Bitkeeper, that is). I am looking for a diff tool that works in Linux and can compare and merge Excel spreadsheets.

Are there any tools that will do this?

You have to options that I am aware of. You can either convert the file to a .csv text file and parse the file using awk/sed or such, or you can use a programming language of your choice to open and modify the spreadsheets. For example, Python has Excel modules - http://www.python-excel.org/ .

.xlsx is nothing more than a compressed collection of XML files, you could unzip them and then diff the files. eg unzip test.xlsx -d unzipped

你可以用“xls_diff -diff xls1 xls2”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM