macOS / binaries /

ul

/usr/bin/ul
Do underlining

The ul utility reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which indicates underlining for the terminal in use, as specified by the environment variable TERM.

source: man