Some simple functions which allow you to print office documents (Excel and Word documents) without having to open OOo
# Runs with bash/zsh/sh (tested with bash/zsh).
# What we are determines what we do :)
if [ "$SELF" = "print_doc" ] ; then
elif [ "$SELF" = "print_excel" ] ; then
antiword -f -a a4 "$1" | a2ps -
xlhtml "$1" | a2ps -1 -
# Fix for LANG settings which are not supported..
for i in "$@" ; do
# And back to the old values