How to use `while read` (Bash) to read the last line in a file if there’s no newline at the end of the file?
How to use while read to read the last line in a file if there’s no newline at the end of the file?