view bin/antixls.sh @ 19:9e2d6f9974a2

remove unneeded functionality from .bashrc
author k0s <k0scist@gmail.com>
date Mon, 22 Feb 2010 13:50:08 -0500
parents f3ab51c79813
children fc81284013bf
line wrap: on
line source


SSCONVERT=`which ssconvert 2> /dev/null`;
if [ -z "${SSCONVERT}" ]; then
    echo "${SSCONVERT} not found.  Please install gnumeric.";
    return 1;
fi;
for i in "$@";
do
    OUTPUT=${i%.xls}.txt;
    $SSCONVERT -I Gnumeric_Excel:excel -T Gnumeric_stf:stf_csv "$i" "$OUTPUT" 2>/dev/null;
    cat "$OUTPUT";
done