We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hi, kiwiapple87! Since we are reading lines recursively appending
|| [[ -n $line ]]
will make sure we do not accidentally skip the last line, which would happen, if the last character was an EOF (end-of-file) character, rather than a EOL (end-ofline or newline) character. I hope that explains it properly.
Compute the Average
You are viewing a single comment's thread. Return to all comments →
Hi, kiwiapple87! Since we are reading lines recursively appending
|| [[ -n $line ]]
will make sure we do not accidentally skip the last line, which would happen, if the last character was an EOF (end-of-file) character, rather than a EOL (end-ofline or newline) character. I hope that explains it properly.