diff options
Diffstat (limited to 'csv2graph')
-rwxr-xr-x | csv2graph | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/csv2graph b/csv2graph deleted file mode 100755 index 8f7d795..0000000 --- a/csv2graph +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | FILE=$1 | ||
4 | |||
5 | shift | ||
6 | |||
7 | if [ ! -f "$FILE" ] ; then | ||
8 | echo "Usage: csv2graph <csv file>" | ||
9 | fi | ||
10 | |||
11 | CUM=`mktemp` | ||
12 | DIST=`mktemp` | ||
13 | OUT=`echo $FILE | sed s/csv/png/` | ||
14 | |||
15 | analyze -adist -b1000 "$FILE" --csv -n -i $* > $DIST | ||
16 | analyze -adist -c -b1000 "$FILE" --csv -n -i $* > $CUM | ||
17 | |||
18 | if [ -s $CUM ] && [ -s $DIST ]; then | ||
19 | plot_dist $DIST $CUM $OUT "$FILE: $*" | ||
20 | rm $DIST $CUM | ||
21 | else | ||
22 | echo "$FILE: Empty." | ||
23 | fi | ||