title: Bash: printf pipeline
body: <p>I have a line of code in bash which I need to have run in python.</p>
  
  <pre><code>printf "operator: 'finger ${USER}|grep Name:| cut -f3 -d:(${USER})\n" &gt; temp_header
  </code></pre>
  
  <p>I'm having a little trouble interpreting it, as I'm new to shell scripts and bash in particular, but from what I've gathered it wants to pull the user's username and name from finger and write them to a new header.  </p>
  
  <p>Am I interpreting this correctly, and if so, would I want to use windows cmd prompt to get username/name from the server?</p>