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

Re: variablen durch pipes (bash)



Am 2005-03-28 00:59:52, schrieb Stefan Muthers:

> > for PIC in `find -name "*.gif"` ; do
> >     giftopnm $PIC |pnmtojpeg > `dirname $PIC`/`basename $PIC`.jpg
> > done
> 
> aber auch hier gibt es bei `dirname $PIC` und `basename $PIC` Probleme, wenn $PIC
> Leerzeichen enthält.

for PIC in `find -name "*.gif"` ; do
    giftopnm "$PIC" |pnmtojpeg > `dirname "$PIC"`/`basename "$PIC"`.jpg
done

jetzt nicht mehr :-)

> Grüße 
> 	Stefan

Greetings
Michelle

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

Attachment: signature.pgp
Description: Digital signature


Reply to: