Warm tip: This article is reproduced from stackoverflow.com, please click
html linux shell

linux shell output to html

发布于 2020-03-30 21:11:52

is there any way to convert bash output to html ? for example if I had some colorized output in bash ( something like htop ), how can I convert it to html tags ... ( something like this: <p style="color: red">some text</p>)

Questioner
linker
Viewed
78
Paused until further notice. 2010-01-09 20:50

There's ansifilter plus some tools like highlight will produce colorized html from plain text such as source files.

Both available here.