#!/bin/bash _t=$( ls *.JPG ); _bufor='fotki.html' echo >$_bufor for e in $_t ; do echo "\"$e\"">>$_bufor done echo >>$_bufor