for i in `ls *.sh` do FILE=/srv/www/htdocs/dokuwiki/data/wifi/$i.txt echo "code" > $FILE cat $i >> $FILE chown wwwrun.www $FILE chmod 666 $FILE echo "/code" >> $FILE printf "[[%s]]\n\n" $i >> /srv/www/htdocs/dokuwiki/data/wifi/unix-kurs.txt done