cd /var/www/html/ ; ls *.gif | sed 's/\(.*\)/<a href=\"\1\"><img src="\1" width="50"> <\/a><a href=\"\1\">\1<\/a><br>/'