While I was developing a small script, I thought about how to use -N flag to a greater extent. Although -N in its own is very limited. It does serve the purpose but not what I need. I also discussed this in #bash freenode, and got some ideas like:
pgas: while read -n1 d;do case $d in '')break;; [0-9])var+=$d;;*) echo error;;esac;done A for loop is probably not such a bad idea either. I'll try and see if I can figure out something. Thanks On Thu, Apr 16, 2015 at 3:55 PM, Eduardo A. Bustamante López < dual...@gmail.com> wrote: > Any reason to justify this instead of using a simple loop? > > -- > Eduardo Bustamante > https://dualbus.me/ > -- Met vriendelijke groet, Valentin Bajrami