title: How do I print the result of a command with 'echo'?
body: <p>How do print my full name with the following?</p>
  
  <pre><code>awk -F: '($1==U){print $5}' U=$LOGNAME /etc/passwd
  </code></pre>
  
  <p>Per example, but with the <code>echo</code> command with some words on sides:</p>
  
  <p>For example,</p>
  
  <blockquote>
    <p>Hello Diogo Saraiva, happy to see you again</p>
  </blockquote>
  
  <p>Where Diogo Saraiva is my full name which I have in Ubuntu records.
  I tried some things, but I have not accomplished that script...</p>
  
  <p><strong>Another thing:</strong> Why, when I issue <code>awk -F: '($1==U){print $5}' U=$LOGNAME /etc/passwd</code>, is <code>Diogo Saraiva,,,</code> shown instead of <code>Diogo Saraiva</code>?</p>
  
  <p>This happens too with:</p>
  
  <pre><code>grep $USER /etc/passwd | awk 'BEGIN { FS=":" } { print $5 }'
  </code></pre>
  
  <p>I need for my script to declare a variable, "like", with the command, and then echo that variable "like" various times along my script.</p>