Homepage
Recent Changes
Search:
History of 2020-08-17 A simple bash one-liner to check a bunch of files for the terminating newline
2020-08-17
19:39 UTC
Revision 1
. . . .
mbork
–
Some time ago I had a bunch of csv files in a directory, and some of them had terminating newlines. I wanted to check if every one of them was newline-terminated. After a while of thinking, I came up with this Bash one-liner: