title: Bash script to read a file
body: <p>Not sure why the last line does not cut the " from the script:</p>
  
  <pre><code>#!/bin/bash
  
  FILENAME=$1
  while read line
  do
  cut -d '"' -f2
  echo $line
  done &lt; $FILENAME
  
  $ cat file
  
  "1" test
  "2" test
  "3" test
  "4" test
  "5" test
  </code></pre>
  
  <p>If I run this script with the following command:</p>
  
  <pre><code>$ ./test file
  
  2
  3
  4
  5
  "1" test
  </code></pre>