davidcook: (circuit)
posted by [personal profile] davidcook at 10:37pm on 20/02/2013
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 :)
Mood:: 'geeky' geeky

November

SunMonTueWedThuFriSat
          1 2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30