Mercurial > hg > config
comparison 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 |
comparison
equal
deleted
inserted
replaced
732:fc81284013bf | 733:aedba894203a |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 SSCONVERT=`which ssconvert 2> /dev/null`; | 3 SSCONVERT=`which ssconvert 2> /dev/null`; |
4 if [ -z "${SSCONVERT}" ]; then | 4 if [ -z "${SSCONVERT}" ]; then |
5 echo "${SSCONVERT} not found. Please install gnumeric."; | 5 echo "ssconvert not found. Please install gnumeric."; |
6 return 1; | 6 exit 1 |
7 fi; | 7 fi; |
8 for i in "$@"; | 8 for i in "$@"; |
9 do | 9 do |
10 OUTPUT=${i%.xls}.txt; | 10 OUTPUT=${i%.xls}.txt; |
11 $SSCONVERT -I Gnumeric_Excel:excel -T Gnumeric_stf:stf_csv "$i" "$OUTPUT" 2>/dev/null; | 11 $SSCONVERT -I Gnumeric_Excel:excel -T Gnumeric_stf:stf_csv "$i" "$OUTPUT" 2>/dev/null; |