This shows the last saved screenshot (on my Desktop path):
ls -t | head -n1
This prints perfectly:
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
How does one combine them?
Without really knowing what I'm doing I've tried this:
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}'
which, naturally fails: