--------------------------------Linux Guide---------------------------------- by Ingo Blechschmidt (c) 2002 ----------------------------------------------------------------------------- ------------------------- Bilder-Archiv ------------------------- Don Jun 14 10:05:50 MEST 2001 ------------------------- Bilder Archiv Thumbnails HTML ----------------------------------------------------------------------------- Dieser Artikel zeigt ein Shell-Skript, welches eine HTML-Seite mit Thumbnails generiert. ----------------------------------------------------------------------------- Sie haben mehrere Bilddateien, und möchten gerne eine Übersicht von ihnen haben. Folgendes Shell-Skript erfüllt diese Aufgabe, siehe <"down/bildermake.sh">Download: --------CODE--------: bildermake.sh #!/bin/bash # bildermake.sh - Generiert einen HTML-Katalog aus Bilddateinamen # (c) Ingo Blechschmidt Thu Jun 14 10:24:50 MESZ 2001 # Verbesserungen bitte an iblech@web.de schicken. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Ingo Blechschmidt # Arberstraße 5 # 86179 Augsburg # E-Mail: iblech@web.de, http://www.way.to/uselinux/ # Tel.: +49 / 821 882955 # # echo " $1 $1
Automatisch generiert von $0, (c) Ingo Blechschmidt Sam Jun  2 09:45:51 MEST 2001 shift a=4 for i in $*; do : $[a+=1] if [ "$a" = "5" ]; then a=0 fi \"$i\" `basename $i` done " --------/CODE-------- Das Ergebnis: --------CODE--------: ./bildermake.sh Schöne Bilder /opt/kde/share/wallpapers/*.jpg > /tmp/bm.tmp.html ---------------- Bild -------------- --------/CODE-------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- This document is distributed under the terms of the GNU Free Documentation License.