I found a command online that works for unzipping docx
files but I haven't been able to tweak it to unzip xlsx
files. The command is
unzip -p some.docx word/document.xml | sed -e 's/<[^>]\{1,\}>//g; s/[^[:print:]]\{1,\}//g'
and I'm having trouble understanding the 2nd parameter word/document.xml
, and how it's used.
When I tried converting an xlsx file, I tried:
unzip -p testexcel.xlsx excel/spreadsheet.xml | sed -e 's/<[^>]\{1,\}>//g; s/[^[:print:]]\{1,\}//g'
but I have no idea what to put in that second parameter in place of excel/spreadsheet.xml
.
unzip -t some.docx
?