Source files for our blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blog/sed.sh

9 lines
347 B

#!/usr/bin/env bash
sed -i -e 's/<header>//'\
-e 's/<\/header>//'\
-e 's/<body>/<body>\n<\!--#include file=\"\/en\/nav.php\" -->\n/'\
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/en\/footer.cgi\" -->\n/'\
-e 's/..\/..\/style.css/\/blog\/style.css/'\
_output/blog/index.html
sed -i -n '1,/<style>/p;/<\/style>/,$p' _output/blog/index.html