for FILE in "$@" do gnuplot <<- EOF set term png set title "Wykres - ${FILE}" set output "${FILE}.png" plot "${FILE}.txt" with points pointtype 1 notitle EOF done