Attachment 'spir.sh'
Download#!/bin/bash if [ $1 == '-t' -a -n $2 ]; then titulka=$2 shift shift else titulka="Gallery" fi if [ ! -d thumbnails ]; then mkdir thumbnails fi cat <<END <html> <title> $titulka </title> <body> <h2>$titulka</h2> <p> END for i in $*; do thumb=thumbnails/${i%.*}.gif convert -resize '15%' $i $thumb echo "<a href="$i"><img src="$thumb"></a> <br>" done cat << END </body> </html> END
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (2008-11-10 08:54:17, 0.9 KB) [[attachment:ps.wiki]]
- [get | view] (2008-11-05 12:01:21, 0.4 KB) [[attachment:spir.sh]]
You are not allowed to attach a file to this page.