expand-nicely is a script that reads lines of text, splits them into fields on an arbitrary regex, and prints them with fields padded to line up vertically.

EG:

The usage message looks like:


Hits: 24
Timestamp: 2026-01-11 12:55:15 PST

Back to Dan's tech tidbits

You can e-mail the author with questions or comments: