massive image converting

Christos Ricudis ricudis at paiko.gr
Wed Sep 30 19:09:10 EEST 1998


Hello Apostolos!

  On 30 Sep 98, Apostolos Siotos wrote to All with subject "massive image
converting":


 AS> Ti mporv na kanv gia na metatrecv mazika gyro stis 15000 .tif
 AS> se .gif h .jpg oi arxikes einai se diafora directories ana
 AS> kathgoria (xarakthristika) kai sta directories ayta isvs na htan 
 AS> kalv na mpoyn kai oi allagmenes..

quick and dirty 

#!/bin/sh
for i in $* ; do
        what=`file $i | tr -s " " | cut -f2 -d " "`
        if [ "$what" == "directory" ] ; then  # could be "if [ -d $i ] ; then
                going into $i :
                sh $0 $i/* ;
        fi
        if [ "$what" == "TIFF" ] ; then
                cjpeg $i ;
        fi
        if [ "$what" == "GIF" ] ; then
                gif2tif <  $i > $i.tif ;
                cjpeg $i.tif ;
        fi
done
if [ "$*" != "" ] ; then
        cd ..
fi




--
Christos Ricudis
"Windows has detected that a gnat has farted near your computer. Press any
 key to reboot". - anonymous in ASR. 	
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list