This commit is contained in:
Arya Kiran 2022-11-23 20:51:50 +05:30
parent 3848c78261
commit 42768b30cc
1 changed files with 2 additions and 2 deletions

4
sed.sh
View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
sed -i -e 's/<header>//'\
-e 's/<\/header>//'\
-e 's/<body>/<body>\n<\!--#include file=\"\/nav.php\" -->\n/'\
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/footer.cgi\" -->\n/'\
-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