Created
July 27, 2022 08:48
-
-
Save Kuo-TingKai/d5706bc4a5e4b622ca6341c9d31d1585 to your computer and use it in GitHub Desktop.
man file to html formatt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while getopts n: flag | |
do | |
case "${flag}" in | |
n) name=${OPTARG}$;; | |
esac | |
done | |
man $name | groff -mandoc -Thtml > ${name}.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment