title: using a variable in a BASH command?
body: <p>I have 20 machines, each running a process. The machines are named:</p>
  
  <blockquote>
    <p>["machine1", "machine2", ...., "machine20"]</p>
  </blockquote>
  
  <p>To inspect how the process is doing on <code>machine1</code>, I issue the following command from a remote machine:</p>
  
  <pre><code>ssh machine1 cat log.txt
  </code></pre>
  
  <p>For <code>machine2</code>, I issue the following command:</p>
  
  <pre><code>ssh machine2 cat log.txt
  </code></pre>
  
  <p>Similarly, for <code>machine20</code>, I issue the following command:</p>
  
  <pre><code>ssh machine20 cat log.txt
  </code></pre>
  
  <hr>
  
  <p>Is there a bash command that will allow me to view the output from all machines using <strong>one command</strong>?</p>