Reputation: 3
I want to extract text from the excel file so i used xlsx2csv command
the text extracted does not give me sheetname
I have used command as :
/usr/bin/xlsx2csv #{excel_name}.xls >> #{excel_name}.txt
Can we get sheetname from using xlsx2csv??
Upvotes: 0
Views: 2696
Reputation: 20980
Try:
xlsx2csv -s 0 ${excel_name}.xlsx >> ${excel_name}.txt
From man xlsx2csv
:
-s SHEETID, --sheet=SHEETID
Sheet to convert (0 for all sheets).
Upvotes: 2