shithub: werc

ref: f0717c7e77266de7e4acf10e1af61b3f83d89b32
dir: /bin/gensitemaptxt.rc/

View raw version
#!/usr/bin/env rc

echo foo
for ( d in sites/*/ ) {
echo $d
9 du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt

}