Timeline for How to loop over the lines of a file?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 10, 2023 at 7:59 | comment | added | Stéphane Chazelas | Note that files with NUL characters in them are also not text files, and except in zsh that loop would also fail if the intention was to keep them as if they were allowed in text files. | |
| Mar 10, 2023 at 7:53 | comment | added | Stéphane Chazelas | files with characters after the last newline are not text files, and those characters don't constitute a line. In many cases those bogus characters are better left ignored or removed, though there are cases where you may want to treat it as a extra line, so it's good you show how. | |
| Apr 21, 2020 at 13:45 | history | edited | Dmitry Shevkoplyas | CC BY-SA 4.0 |
Adding an important note (as suggested in comments by Tobias Kienzler).
|
| Apr 21, 2020 at 8:17 | vote | accept | Tobias Kienzler | ||
| Apr 16, 2020 at 20:03 | review | First posts | |||
| Apr 17, 2020 at 2:55 | |||||
| Apr 16, 2020 at 20:02 | history | answered | Dmitry Shevkoplyas | CC BY-SA 4.0 |