Summary Files Commits Branches @commit @diff @stats
path: root / demo / awk-scripts / Blog-info.awk
blob: 89e044a7c66d219d2230ab30fcd00dae5e320541 (plain) (blame)
1
2
3
4
5
6
# .*blog/.*/.*\.html
# Adds an element with date created, date edited and estimated read time below h1

/<h1/ {
	$0 = $0 ORS "<div>Created: " created " | Last edited: " edited " | Read time: " (int(words / 180)+1) " min</div>"
}