Mercurial > hg > config
diff bin/antixls.sh @ 0:f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
author | k0s <k0scist@gmail.com> |
---|---|
date | Thu, 15 Oct 2009 11:41:26 -0400 |
parents | |
children | fc81284013bf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/antixls.sh Thu Oct 15 11:41:26 2009 -0400 @@ -0,0 +1,14 @@ + +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 + +