Compile and install xlsx
cat for xlsx files:
ls *.xlsx | xargs -IXXX sh -c "xlsx2txt 'XXX' | sed s/^/XXX\:\ /g"
alias for that cat:
alias xlsx_grep="ls *.xlsx | xargs -IXXX sh -c \"xlsx2txt 'XXX' | gsed s/^/XXX\:\ /g\""
now grep:
xlsx_grep | grep "searched_string"
TODO:
-
make script to support arguments. e.g.:
xlsx_grep "searched_string" *.xlsx