+ POWERPOINT) which ppthtml > /dev/null 2>&1 ||
+ {
+ echo "Program 'ppthtml' for displaying Powerpoint files not found" >&2
+ exit 1
+ };
+ which html2text > /dev/null 2>&1 ||
+ {
+ echo "Program 'html2text' for displaying Powerpoint files not found" >&2
+ exit 1
+ };
+ echo -e "Displaying \"$1\" using \"ppthtml\" and \"html2text\":\n";
+ ppthtml "$1" | html2text ;;
+
+ EXCEL) which xlhtml > /dev/null 2>&1 ||
+ {
+ echo "Program 'xlhtml' for displaying Excel files not found" >&2
+ exit 1
+ };
+ which html2text > /dev/null 2>&1 ||
+ {
+ echo "Program 'html2text' for displaying Excel files not found" >&2
+ exit 1
+ };
+ echo -e "Displaying \"$1\" using \"xlhtml\" and \"html2text\":\n";
+ xlhtml "$1" | html2text ;;
+