#!/bin/bash plik='galeria.html' echo >$plik for e in $( ls *.JPG ) ; do echo -en "\"Astra:${e}\"\r\n">>$plik done