Your code reproduces the bug of ignoring the line that is the bare '0'. You don't want to test the value of the line, but its length.
In reply to Re^2: A perverse use of grep
by brian_d_foy
in thread A perverse use of grep
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |