How do I get ngspice to output the values of the variables in batch mode?
You are doing a dc sweep from 10V to 10V with 1V step, which is nonsense.
To print values you should use the .print command. 
eg.
.print v(1) v(2) v(3) v(4) i(v1)
Hope it helps.
Joao