tocrc
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 代码 · 共 98 行
TXT
98 行
if $2x != x goto bothgoto $1x: allxsh $0 1 Ish $0 2 IIsh $0 3 IIIsh $0 4 IVsh $0 5 Vsh $0 6 VIsh $0 7 VIIsh $0 8 VIII: txcat tocx? >cattocptx -t cattoc ptxxrm cattoced - tocx11,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc1e tocx21,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc2e tocx31,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc3e tocx41,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc4e tocx51,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc5e tocx61,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc6e tocx71,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc7e tocx81,$s/([IV]*) /" "/1,$s/.*/.xx "&"/w toc8qexit: 1xsh $0 1 Iexit: 2xsh $0 2 IIexit: 3xsh $0 3 IIIexit: 4xsh $0 4 IVexit: 5xsh $0 5 Vexit: 6xsh $0 6 VIexit: 7xsh $0 7 VIIexit: 8xsh $0 8 VIIIexit: xecho usage: sh tocrc "[12345678]"exit: bothchdir /usr/man/man$1ls >xaed - xav/\.[12345678]$/dg/intro.2/dg/^/s//e /\.a\/NAME/1pwqed - <xa >xbecho "1,$s/ *\\\*- */("$2") /" >xaif $1 != 2 goto 1fecho 0a >>xaecho "intro(II) introduction to system calls" >>xaecho . >>xa: 1fecho w /usr/man/man0/tocx$1 >>xaed - xb <xarm xa xb
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?