Skip to main content
Improved version of the command to process all records
Source Link

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

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

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

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/

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

cat "somefile" | { cat ; echo ; } | while read line; do echo $line; done

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

Added source
Source Link

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/

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

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/

Source Link

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