#!/bin/bash file=$1 shift for i in $* do ./select_month.sh $file $i ./make_gplot.sh $i.dat | gnuplot > $i.png shift done