title: Echo multiple variables in same line Bash
body: <p>I want to echo two variables on the same line.<br>
  I want to store 2015-03-04.01.Abhi_Ram.txt in a variable FILENAME and 10 in a variable COUNT and echo them simultaneously.    </p>
  
  <p>Sample.txt     </p>
  
  <blockquote>
    <p>2015-03-04.01.Abhi_Ram.txt  10<br>
    2015-03-04.02.Abhi_Ram.txt  70</p>
  </blockquote>
  
  <p>Below is the code I came up with:  </p>
  
  <pre><code>for line in `hadoop fs -cat sample.txt`
  do
  
  VAR="${line}"
  FILENAME=`echo ${VAR}|awk '{print $1}'`
  COUNT=`echo ${VAR}|awk '{print $2}'`
  COUNT_DT=`date "+%Y-%m-%d %H:%M:%S"`
  echo db"|"Abhi_Ram"|"record_count"|"${FILENAME}"||"${COUNT}"||"${COUNT_DT} &gt;&gt; output.txt
  done
  
  I want the output as:
  </code></pre>
  
  <blockquote>
    <p>db|Abhi_Ram|record_count|2015-03-04.01.Abhi_Ram.txt||10||timestamp
    db|Abhi_Ram|record_count|2015-03-04.02.Abhi_Ram.txt||70||timestamp</p>
  </blockquote>
  
  <pre><code>I'm getting the output as:
  </code></pre>
  
  <blockquote>
    <p>db|Abhi_Ram|record_count|2015-03-04.01.Abhi_Ram.txt||||timestamp<br>
    db|Abhi_Ram|record_count|10||||timestamp<br>
    db|Abhi_Ram|record_count|2015-03-04.02.Abhi_Ram.txt||||timestamp<br>
    db|Abhi_Ram|record_count|70||||timestamp  </p>
  </blockquote>
  
  <p>Could someone point me what I am missing?</p>