mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
re-introduce awk cmd previously thought obsolete
This commit is contained in:
parent
03a1c18191
commit
26025d928c
1 changed files with 2 additions and 1 deletions
|
@ -51,5 +51,6 @@ sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
|||
-e 's|([a-z])<data|\1 <data|' \
|
||||
-e 's#</span>(<a[^>]*rel="(nofollow ugc|ugc nofollow)"([^>]*)?>liked</a>)#</span> \1#' \
|
||||
-e 's#^[\t\s]*<(code|/pre)#<\1#' \
|
||||
"$tmp_file"
|
||||
"$tmp_file" \
|
||||
| awk '/^<\/code>/{printf "%s",$0;next}7'
|
||||
} >"$html_file"
|
||||
|
|
Loading…
Reference in a new issue