title: access to two or more file via read command on bash
body: <p>please look at <a href="https://stackoverflow.com/questions/10929453/bash-scripting-read-file-line-by-line">here</a> to read from a file line by line,So I use the first answer and works:</p>
  
  <p>First answer:</p>
  
  <pre><code>The following (save as rr.sh) reads a file from the command line:
  
  #!/bin/bash
  while read line
  do
      name=$line
      echo "Text read from file - $name"
  done &lt; $1
  Run the script as follows:
  
  chmod +x rr.sh
  ./rr.sh filename.txt
  </code></pre>
  
  <p>My question is If I want to read another file line by line , What I should do ? For example this code :</p>
  
  <pre><code>The following (save as rr.sh) reads a file from the command line:
  
  #!/bin/bash
  #this read refers to filename.txt
  while read line 
  do
      name=$line
      echo "Text read from file - $name"
  done &lt; $1
  .
  .
  .
  #this read refers to file2.txt
  while read line 
  do
      name=$line
      echo "Text read from file - $name"
  done &lt; $1
  Run the script as follows:
  </code></pre>
  
  <p>How I can write this?</p>