title: bash for inline command
body: <p>I have to run commands, in a bash script, and within this bash script I have to run other commands. I am running CentOS.</p>
  
  <p>I found 2 ways to do this on blogs and manuals:</p>
  
  <p>1) using the ticks or accent char</p>
  
  <pre><code>command `sub command`
  </code></pre>
  
  <p>or</p>
  
  <p>2) using the dollar sign and parentheses</p>
  
  <pre><code>command $(sub command)
  </code></pre>
  
  <p>What is the difference between the 2 and which one is preferable to use?</p>