#!/bin/bash
if [ $1 == "-range" ] then range=$2 shift 2 fi
gnuplot -persist <<EOF
plot $range "<grep econst $1" u 2 w l, "<grep econst $2" u 2 w l
EOF