If you can structure your data-file to separate every data block with 2 empty lines, you can use feature index with a for loop:
unset key
plot for [i=0:9] 'temp.txt' index i

(my datafile is 1-10 in every block (1-10, 11-20...), structured with 2-2 empty lines)
If you can't structure your data-file (our you are just lazy ;-) ) you can use only the for loop:
plot for [i=0:9] 'temp2.txt' every ::i*10::i*10+9
(my datafile is 1-10 in every block (1-10, 11-20...) without empty lines)
EXTENSION (according to Karl)
If you can structure your data-file to separate every data block with 1 empty lines, you can use feature index with a for loop
plot for [i=0:9] 'temp3.txt' every :::i::i
(my datafile is 1-10 in every block (1-10, 11-20...), structured with 1-1 empty lines)