manview.sh
来自「Shall高级编程」· Shell 代码 · 共 30 行
SH
30 行
#!/bin/bash# manview.sh: Formats the source of a man page for viewing.# This script is useful when writing man page source.# It lets you look at the intermediate results on the fly#+ while working on it.E_WRONGARGS=65if [ -z "$1" ]then echo "Usage: `basename $0` filename" exit $E_WRONGARGSfi# ---------------------------groff -Tascii -man $1 | less# From the man page for groff.# ---------------------------# If the man page includes tables and/or equations,#+ then the above code will barf.# The following line can handle such cases.## gtbl < "$1" | geqn -Tlatin1 | groff -Tlatin1 -mtty-char -man## Thanks, S.C.exit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?