David Cook (davidcook) wrote,
David Cook
davidcook

  • Mood:

Ummm ...

Recorded for ... ummm ... posterity ?
open -a /Applications/Preview.app/ $( identify $( file $( find . -type f -mtime -7h ) |
 grep image | awk -F: '{print $1}' ) | sort -k3,3n | cut -d'[' -f 1 | tail -45  )


... translation: "Open, using the Preview application, the largest (by X dimension) 45 images among those found anywhere under the current directory, among those modified in the last 7 hours".

(I'm running it from the Firefox Cache directory, ~/Library/Caches/Firefox/Profiles/profile_name/Cache)

There's probably a better way to do it ... almost certainly suitable one-liners in Perl/Ruby/Python could be found. But this worked for me :)



Original post on Dreamwidth - there are comment count unavailable comments there.
Subscribe

  • Books read in 2017 ...

    Angel of Storms - Trudi Canavan The Rhesus Chart - Charles Stross Magic for Nothing - Seanan McGuire The Annihilation Score - Charles Stross An…

  • DW and LJ

    In case anyone is looking for me on Dreamwidth, same username as on LJ (since, ummm ... 2009 !) Original post on Dreamwidth - there are…

  • Movies in 2015 ...

    Well, I'm cheating a bit, because I only saw one at the cinema, Star Wars: The Force Awakens, but I want to note down a few thoughts I had on it ...…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments