I am aware of using in2csv
to save a particular worksheet as a .csv:
in2csv --sheet "sheet name" file1.xls > sheet-name.csv
But are there any other tools to just print the sheetnames?
Perhaps there are options with Perl?
command linecsvxls
I am aware of using in2csv
to save a particular worksheet as a .csv:
in2csv --sheet "sheet name" file1.xls > sheet-name.csv
But are there any other tools to just print the sheetnames?
Perhaps there are options with Perl?
Best Answer
in2csv
from thecsvkit
package provides the--names
or-n
option for that: [Source]In your example the command would be:
This feature was added in
csvkit
1.0.2, which is not available from the official package sources for releases older than Bionic. If you’re running Xenial you need to eitherinstall it via
pip
withto get the latest version.