title: BASH: i can echo string + grep + sed, but how to add more strings on the same line?
body: <p>Asking a question here is always my last resort. I tried everything even the most embarrassing code so i'm confused on explaining what i tried with no success. I have:</p>
  
  <pre><code>echo $output | grep -i -m 1 "Time:" | sed 's/.*\s\([0-9]*:[0-9]*:[0-9]*\).time.*/\1/'
  </code></pre>
  
  <p>it outputs:</p>
  
  <pre><code>23:25:31
  </code></pre>
  
  <p>Easy.</p>
  
  <p>But i'd like to add one more string to the end, like " , $year" - so that i have:</p>
  
  <pre><code>23:25:31 , 2013
  </code></pre>
  
  <p>The problem is that whatever i tried (printf, -n, -e, -ne, brackets, quotes, |, ;, &amp;, /r, etc.) gives an error or goes to a new line anyway.</p>
  
  <p>Any suggestion will be really appreciated.</p>
  
  <p>Thanks</p>