unix 2010-12-09 15-12-15
~~ Имя jpg фала - его дата создания
#!/bin/sh for i in *.[Jj][Pp][Gg] ; do #echo File:$i stamp=` strings "$i" |grep ^....:..:.. |sort |head -1 |sed 'y/:/-/' |sed 'y/ /_/'` echo $i == $stamp if [ "$stamp" != "" ] then echo Process:$i to $stamp.jpg cp "$i" "$stamp.jpg" else echo no process:$i fi done