Split sed expressions into multiple lines

pull/1/head
Arya K 3 months ago
parent fa38cb5144
commit d61f2eb7c8
Signed by: aryak
GPG Key ID: 3A6EA2D0EE314EEF
  1. 7
      sed.sh

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

Loading…
Cancel
Save