ctpv/updatedate.awk

16 lines
151 B
Awk
Raw Normal View History

2022-07-31 20:30:13 +02:00
#!/usr/bin/gawk -f
@include "inplace"
BEGIN {
FS = " "
}
/^\.TH / {
cmd = "date +%Y-%m-%d"
cmd | getline $4
close(cmd)
}
{ print }