view bin/antixls.sh @ 732:fc81284013bf

shebang
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Feb 2015 14:48:40 -0800
parents f3ab51c79813
children aedba894203a
line wrap: on
line source

#!/bin/bash

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