= Why you don't read lines with "for" = Many people think that they should use a `for` loop to read the lines of a text file. This is clumsy and inefficient at best, and fails in many cases. You should [[BashFAQ/001|use a while loop]] instead. Here is why. First, the right way: {{{ $ cat afile ef gh * $ while IFS= read -r aline; do printf '%s\n' "$aline" ; done < afile ef gh * }}} Now, trying to use `for`: {{{ $ for i in $(