stoerrisches shell script
Frederik Sdun
frederik.sdun at googlemail.com
Die Dez 2 10:29:21 GMT 2008
hi,
ui stimmt. is ja nicht `touch` oder $(). *kopf-> tisch*.
also hier sollte das ergebniss sein:
#!/bin/sh
FTP=ftp.sh
i=CSS
echo ftp w.x.de '<<EOT' > $FTP
echo passive >>$FTP
echo cd htdocs/BIB >> $FTP
echo ls >> $FTP
echo -n "mput " >> $FTP
for f in $i/*.css
do
[ timestamp -nt $f ] && continue
echo -n " $f" >> $FTP
done
echo >> $FTP
touch timestamp
echo bye >> $FTP
echo EOT >> $FTP
echo
cat $FTP
man kanns auch noch schöner machen. aber ich muss jetzt erstmal weg ;)