do for [i=first:last] { filename = sprintf("file%02d.dat", i) stats filename nooutput if (GPVAL_ERRNO) { print GPVAL_ERRMSG continue } plot filename title filename }