Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Excel 文件,但没有扩展名(或扩展名不可信),我想检测文件是 XLS 还是 XLSX 格式。在 Linux 中怎么能做到这一点?
XLSX 实际上是一个 zip 存档,这意味着做一个
file excel-file
将返回 XLSX 之类的东西
Zip archive data, at least v2.0 to extract Zip archive data, at least v2.0 to extract
对于 XLS 类似
Composite Document File V2 Document, No summary info
当然,在 Windows 中,可以简单地使用解压缩器打开 XLSX 文件。