import – How do I read reliably from stdin with wolframscript?

I'm trying to route a data stream to a wls Script in a command-line environment. Wolframscript delivers the $ScriptInputString Symbol for reading stdin, However, if the input is large, no input appears to be read.

How do I read from standard input for large formats?

Minimal (not working) example:

for i in $(seq 0 $SIZE); do echo $i; done | wolframscript -print -c $ScriptInputString

When $SIZE=100000 (one hundred thousand), outputs all integers 0 to 1000000, When $SIZE=1000000 (one million) is nothing.

$Version is 11.3.0 for Linux x86 (64-bit) (March 7, 2018)

Scripting – WolframScript does not simplify the output

I am trying to multiply a matrix and a vector (imported from a CSV) into Tungsten script to speed up a process that is usually done with Mathematica notebooks. However, this is the first time that I use Wolfram script, and it seems that it does not simplify my answers. For example, I tried the simplest example:

value1 = Import(file1.csv, "Table");
value2 = Import(file2.csv, "Table");

value1 = value1((1))((1)); //value1 = Sqrt(2)
value2 = value2((1))((1)); //value2 = Sqrt(3)

Print(FullSimplify(Evaluate(value1 * value2))) //should be Sqrt(2)*Sqrt(3) = Sqrt(6)

This gives sqrt (6) in the normal notebook, but sqrt (2) * sqrt (3) as output on the command line with tungsten script.

I tried FullSimplify, Simplify, Evaluate, etc., but nothing seems to simplify the answer in Wolframscript.

The matrices and vectors that I eventually try to multiply are much more complicated, so I'm trying to find a solution to this simple case. I wonder if it has anything to do with the sqrt function?

Thank you in advance!