makewhatis
来自「speech signal process tools」· 代码 · 共 38 行
TXT
38 行
#! /bin/sh## This material contains proprietary software of Entropic# Speech, Inc. Any reproduction, distribution, or # publication without the the prior written permission of# Entropic Processing, Inc. is strictly prohibited. Any# public distribution of copies of this work authorized in# writing by Entropic Speech, Inc. must bear the notice# # (c) Copyright 1986, 1987 Entropic Speech, Inc.; All rights reserved## @(#)makewhatis 3.6 9/30/97 ESI#cat > getname.w <<\!/^\.TH/ {flag=1; TL=$0} /SYNOPSIS/ {flag=0}/"SYNOPSIS"/ {flag=0}/DESSCRIPTION/ {flag=0}/"DESSCRIPTION"/ {flag=0}/^[^\.]/ {if (flag == 1) printf("%s\t%s\n",TL,$0) }!for i in man1 man3 man5do awk -f getname.w $i/*.*done >whatiscat > whatis.sed <<\!s/\\\*-/-/s;\\;;gs/.TH [^ ]* \([^ ]*\).* \([^-]*\)/\2(\1) /s/ / /g!sed -f whatis.sed whatis > whatis2expand -24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100 whatis2 | sort >whatis$$unexpand -a whatis$$ | awk 'NF > 5 {print $0}' | uniq > whatischmod 644 whatisrm whatis$$ whatis2 whatis.sed getname.wexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?