scripts/text/mid.awk

7 lines
88 B
Awk
Raw Normal View History

2019-07-05 19:09:01 -07:00
{
z = col - length
y = int(z / 2)
x = z - y
printf "%*s%s%*s\n", x, "", $0, y, ""
2019-05-14 22:12:41 -07:00
}