$ type generate_index generate_index est une fonction generate_index () { mkdir thumbs; mogrify -format gif -path thumbs -thumbnail 200x200 *.jpg; for i in thumbs/*.gif; do echo "" >> index.html; done }