title: Decode sed expression
body: <p>I would like to understand the sed part of this code:</p>
  
  <pre><code>/usr/local/bin/pcsensor -l60 -n | sed -e "s/^.*\$/PUTVAL downloads\/exec-environmental\/temperature-cpu interval=30 N:\0/"
  </code></pre>
  
  <p>(the input) pcsensor produces:</p>
  
  <pre><code>2016/09/19 22:41:31 Temperature 90.50F 32.50C
  </code></pre>
  
  <p>The code produces (output):</p>
  
  <pre><code>PUTVAL downloads/exec-environmental/temperature-cpu interval=30 N:32.50
  </code></pre>
  
  <p>I am hoping that understanding the sed expression will help me to knock the last digit off (so the temp is only 1 decimal place). </p>
  
  <p><strong>Updated</strong>: My booboo (it was late):</p>
  
  <p>the -n in the first part of the command outputs this:</p>
  
  <pre><code>32.50
  </code></pre>
  
  <p>Which works fine in an echo/printf</p>
  
  <pre><code>printf "32.50 %s\n"| sed -e "s/^.*\$/PUTVAL downloads\/exec-environmental\/temperature-cpu interval=30 N:\0/"
  </code></pre>