Hi, I'd use a named local parameter instead of REPLY and clear out IFS completely: Daniel Hahler wrote: > + local maxlines=10 > + while IFS='\n' read -r; do local maxlines=10 line while IFS= read -r line; do …and then use $line instead of $REPLY in the rest. Regards, Frank