2010年1月25日星期一

search for the latest file create time in more than one directories, with respect to time zone

TZ=Asia/Shanghai perl -MPOSIX -le 'print map {$_=strftime(q(%Y-%m-%d %H:%M:%S),localtime($_))} (sort( map { (stat($_))[10] } map {glob(qq($_/*))} @ARGV))[-1]' /tmp .

没有评论: