txt2man

Converts flat ASCII text files to man page format

brewmacoslinux
Try with needOr install directly
Source

About

Converts flat ASCII text to man page format

Commands

txt2man

Examples

Convert a text file to a man page$ txt2man -t MyTool input.txt > mycommand.1
Generate man page with custom section number and date$ txt2man -s 8 -d '2024-01-15' readme.txt > program.8
Display converted man page directly without saving$ txt2man -t MyApp input.txt | man -l -