title: What does the following expression do <<EOF>tmp
body: <p>A shell script with a database connection using sqlplus contains this line:</p>
  
  <pre><code>sqlplus username/password@DBNAME&lt;&lt;EOF&gt;tmp.
  (here there is a select sql query)
  </code></pre>
  
  <p>I know <code>&lt;&lt;EOF</code> indicates the start of the command. I have the below doubts in the <code>&gt;tmp</code> part.</p>
  
  <p>1)Does it indicate storing into a file?</p>
  
  <p>2) If yes will it put the results of the SQL query alone into the tmp file or the query and the results both.</p>
  
  <p>Could you please clear me on this one?</p>