#!/bin/sh if [ -z "$1" ]; then echo "usage: $0 file" 1>&2 exit 1 fi if [ ! -f "$1" ]; then echo "$1: not found" 1>&2 exit 1 fi gnuplot -persist <