⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwpfind.sh

📁 su 的源代码库
💻 SH
字号:
#! /bin/sh# /*********************** self documentation **********************/# CWPFIND - look for files with patterns in CWPROOT/src/cwp/lib## Usage: cwpfind  pattern_fragment#        cwpfind -e exact_pattern## /**************** end self doc ********************************/# Copyright 1985 by Jack K. Cohen##################$############################################################# test for CWPROOT###############################################################################if test "${CWPROOT}" = ""then	echo "The environment variable \"CWPROOT\" "	echo "is not set in the user's working shell environment."	echo "To set this variable in C-shell, use the command: "	echo "  setenv  CWPROOT  /your/cwp/root/path"	echo "To set this variable in Bourne or Korn-shell, use the command:"	echo "  export  CWPROOT=/your/cwp/root/path" ; exit 1fi################################################################################# test for CWPSRC, use value if set, define as $CWPROOT if not set# (CWPSRC allows one set of source code and documentation for multiple machines)################################################################################if test "${CWPSRC}" = ""thenCWPSRC=$CWPROOTfiROOT=${CWPROOT}BIN=$ROOT/binCWP=$CWPSRC/src/cwpPATH=/bin:/usr/bin:/usr/ucb:$BINCWPLIB=$CWP/libPAGE_PROGRAM=morecmd=`basename $0`WHITE='[ 	]'case $# in1|2)	# OK;;*)    	echo "CWPFIND - search for files with patterns in ../src/cwp/lib"	echo    	echo "Usage: $cmd keyword_fragment"	echo "or:    $cmd -e exact_keyword"	1>&2; exit 1esacoption=fragmentword=for ido	case $i in	-e)		option=wholeword	;;	-*)    		echo "Illegal option: $i ($cmd [-e] word)"		1>&2; exit 1	;;	*)		word="$i"	;;	esacdoneecho "Scanning $CWPLIB ..."case $option infragment)	grep -li "$word" $CWPLIB/*.c;;*)	egrep -l "$WHITE$word$WHITE|^$word$WHITE|$WHITE$word$|^$word$"\		 $CWPLIB/*.c;;esac |sed 's:.*/::'exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -