#!/bin/sh if [ $# -eq 0 ]; then echo "Usage: gnuplot-docsize docsize.1 [[docsize.2] [...]]" exit fi tempfile=/tmp/gnuplot.$$ plot="plot \"$1\" with boxes" shift for docsize in "$@" ; do plot=$plot," \"$docsize\" with boxes" done cat > $tempfile <