title: Print the last saved screenshot with Terminal
body: <p>This shows the last saved screenshot (on my Desktop path):</p>
  
  <pre><code> ls -t | head -n1
  </code></pre>
  
  <p>This prints perfectly:</p>
  
  <pre><code> lp -o -scaling=50 -o media=Custom.60x42mm -o page-left=0 -o page-right=0 -o page-top=5 -o page-bottom=5 image.png
  </code></pre>
  
  <p>How does one combine them?</p>
  
  <p>Without really knowing what I'm doing I've tried this:</p>
  
  <pre><code>ls -t | head -n1 |awk '{lp -o -scaling=50 -o media=Custom.60x42mm -o page-left=0 -o page-right=0 -o page-top=5 -o page-bottom=5  $0}'
  </code></pre>
  
  <p>which, naturally fails:</p>
  
  <p><a href="https://i.stack.imgur.com/XQyjq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XQyjq.png" alt="error"></a></p>