This shows you the differences between two versions of the page.
kurs:mkwiki.sh [2014/09/10 21:22] |
kurs:mkwiki.sh [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||