menu.sh 269 B

1234567
  1. #!/bin/sh
  2. sed -n '/<nil id="nil">/,/<\/nil>/p' sitemap.html > menu.html
  3. sed -i -e 's/nil id="nil"/nav class="navbar"/g' menu.html
  4. sed -i -e 's/\/nil/\/nav/g' menu.html
  5. sed -i -e 's/href="/href="..\//g' menu.html
  6. sed 's/\.\.\//.\/storie\//g' menu.html > menu-lev0.html