Bash: while statement with ‘read’ not processing last value
An often unexpected behavior of the ‘read‘ utility within a ‘while’ statement is that the last value will not be processed if it does not end with the delimiter. For example, if you are using while to read multiple lines and the last line ends with just EOF (instead of a linefeed followed by EOF), … Bash: while statement with ‘read’ not processing last value