annotate bin/antixls.sh @ 733:aedba894203a

minor fixes
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Feb 2015 14:51:27 -0800
parents fc81284013bf
children e4d0f89d4ddc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
732
fc81284013bf shebang
Jeff Hammel <k0scist@gmail.com>
parents: 0
diff changeset
1 #!/bin/bash
0
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
2
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
3 SSCONVERT=`which ssconvert 2> /dev/null`;
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
4 if [ -z "${SSCONVERT}" ]; then
733
aedba894203a minor fixes
Jeff Hammel <k0scist@gmail.com>
parents: 732
diff changeset
5 echo "ssconvert not found. Please install gnumeric.";
aedba894203a minor fixes
Jeff Hammel <k0scist@gmail.com>
parents: 732
diff changeset
6 exit 1
0
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
7 fi;
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
8 for i in "$@";
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
9 do
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
10 OUTPUT=${i%.xls}.txt;
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
11 $SSCONVERT -I Gnumeric_Excel:excel -T Gnumeric_stf:stf_csv "$i" "$OUTPUT" 2>/dev/null;
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
12 cat "$OUTPUT";
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
13 done
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
14
f3ab51c79813 adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff changeset
15