AllInfo
Main: Info Blog Temp Mail


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

18.227.140.251 / 2024-12-22_20-07-40 UTC.