Skip to main content
2 of 3
Added source

To read all the lines, regardless of whether they are ended with a new line or not:

echo "$(cat "somefile")" | while read line; do echo $line; done

Source : My open source project https://sourceforge.net/projects/command-output-to-html-table/