FOERBICO/sb/scripts/move-date.awk

7 lines
137 B
Awk
Raw Permalink Normal View History

/^###_tmpDate_:/ {
linecontent = linecontent $0
}
/^#staticSiteGenerator:/ {
$0 = $0 ORS "date: " linecontent
}
!/^###_tmpDate_:/