[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hunderte Bilder bearbeiten - Scripthilfe!



So zum Beispiel:

----8<----------------------------------------------------------
#!/bin/bash
#conv2net

echo "-------------------Working ! ----------------------"
echo "-------don't touch the system while running -------"

base="/home/user"
picdir="Fotos"

cd ${base}/${picdir} || exit 1

for jpg in $(find -name "*.jpg" |sed "s|${base}/${picdir}/||")
do
  mkdir -p $(dirname        ${base}/net${picdir}/${jpg})
  convert ${jpg} -scale 800 ${base}/net${picdir}/${jpg}
  echo "/net$(basename ${jpg})"
done
----8<----------------------------------------------------------



-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: