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

44.222.134.250 / 2024-10-15_12-50-39 UTC.