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