filename improvement

This commit is contained in:
ville rantanen
2014-06-16 08:43:56 +03:00
parent 0cf4847d8f
commit 389a15c455

View File

@@ -16,12 +16,14 @@
exit
}
fbase=$( basename "$1" )
csvcut -t -c "$2,$3" "$1" | gnuplot -e "
set term dumb $(tput cols) $(tput lines) enhanced;
set datafile separator \",\";
set xlabel '$2';
$5
plot '<cat' using 1:2 title '$1 $3' $4"
plot '<cat' using 1:2 title '$fbase $3' $4"
[[ $? -ne 0 ]] && {
echo -n "Possible columns: "