title: read line and remove newline character using shell script
body: <p>I have shell script which generate sql queries based on a values in text file. My text file 
  has values as follows (line by line)
  <img src="https://i.stack.imgur.com/GzXFS.png" alt="enter image description here"></p>
  
  <p>my shell script is this.</p>
  
  <pre><code>#!/bin/sh
  NAME="tableNames.txt"
  COLUMNA="ca"
  COLUMNB="cb"
  cat $NAME | while read LINE
  
  do
  echo "CREATE TABLE \"$LINE\" (
          forward_speed double precision,
      backward_speed double precision
        );"
  done
  </code></pre>
  
  <p>LINE variable get the value from textfile correctly but it has newline character how do i remove new line character.</p>