13
Nov
I need a little tech help…
How can I, using only command line tools, find the newest .jpg file in a given directory? I would like to use that in part of a cron job so I can copy images from my moblog to a common directory with my Word Press instillation.
Basically:
- find the matching image
- cp /moblog /content/images/latest.jpg
- embed /content/images/latest.jpg in one of my posts
- execute steps 1 & 2 via cron
Anyone know how to pull this off? Read more


