From b00f8ea6a7d24a4e4c0d65d17f9fcb1366e35955 Mon Sep 17 00:00:00 2001 From: disu1950 Date: Wed, 25 Dec 2024 22:16:36 +0000 Subject: [PATCH] skript --- man2html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 man2html diff --git a/man2html b/man2html new file mode 100644 index 0000000..9697f51 --- /dev/null +++ b/man2html @@ -0,0 +1,12 @@ +#!/bin/sh + +file=$(man -w $@) || exit + +if gzip -t $file +then + zcat $file +else + cat $file +fi | groff -mandoc -T html + +# % man2html ls > ls_manpage.html \ No newline at end of file