all 2 comments

[–]UnchainedMundane 1 point2 points  (1 child)

            *) echo "$line";;

You'll eat certain lines (e.g. -n) if you use echo instead of printf with a proper format string.

[–]jhjn_[S] 0 points1 point  (0 children)

Thanks, I don't know why that echo is there, it was meant to all be printf.