Answer by James Hirschorn for Convert .xls/.xlsx spreadsheets to multiple...
Use Gnumeric: ssconvert -S filename.xlsx filename.csv to get one csv file per sheet.
View ArticleAnswer by pLumo for Convert .xls/.xlsx spreadsheets to multiple .csv's based...
csvkit version > 1.0.2 has a builtin function to write all sheets: --write-sheets: WRITE_SHEETS The names of the Excel sheets to write to files, or "-" to write all sheets. So you could try the...
View ArticleAnswer by muru for Convert .xls/.xlsx spreadsheets to multiple .csv's based...
Skipping find and using bash: shopt -s globstar # enable recursive globbing for f in **/*.xls{,x} # for files ending in .xls or .xlsx do in2csv -n "$f" | # get the sheetnames xargs -I {} bash -c...
View ArticleAnswer by pLumo for Convert .xls/.xlsx spreadsheets to multiple .csv's based...
You can just put a loop inside another loop. To avoid errors, don't use for with find results. while IFS= read -r file; do while IFS= read -r sheet; do in2csv --sheet "$sheet" "$file" >...
View ArticleConvert .xls/.xlsx spreadsheets to multiple .csv's based on a list
I need to convert all sheets of a single .xls/.xlsx file to a .csv. This will be done on all .xls files in all directories and sub-directories (recursively). Step 1: Get the sheetnames of all .xls...
View Article