annotate bin/antixls.sh @ 822:570ace9ed7c2

make my life a little easier
author Jeff Hammel <k0scist@gmail.com>
date Mon, 06 Feb 2017 09:29:39 -0800
parents e4d0f89d4ddc
children
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;
734
e4d0f89d4ddc more cleanup; still aint work
Jeff Hammel <k0scist@gmail.com>
parents: 733
diff changeset
11 ${SSCONVERT} -I Gnumeric_Excel:excel -T Gnumeric_stf:stf_csv "$i" "$OUTPUT" 2>/dev/null;
0
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