File:  [Research Unix] / researchv8dc / cmd / wwb / wwbhelp.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

# NOTICE-NOT TO BE DISCLOSED OUTSIDE BELL SYS EXCEPT UNDER WRITTEN AGRMT
L=/usr/lib/style
for i in $*
	do case $i in
		-ver) echo $0 version 2.0:: 2.0;exit;;
		-flags) echo $0 \[-ver\] \[-flags\] \[word or part of word ..\];exit;;
		-*) echo unknown wwbhelp flag $i;exit;;
	esac
done
if test $# = 0
then
	echo -e 	'When you see the ">" sign, type the word you wish to have
more information for.  When you wish to stop, type q.

If no information appears, either your word is misspelled or
it is not included in the help file.\n'
	while echo -e ">\c";read word
		if test \( "$word" = 'q' -o "$word" = '.' -o "$word" = '' \)
		then 	exit
		fi
		do
			worduncap=`echo $word|tr [A-Z] [a-z]`
                        grep "$worduncap" $L/helplist.d
		done
else 	echo -e 'If no information appears, either your word is misspelled or
it is not included in the help file.\n'
	while test "$1"
		do
        		worduncap=`echo $1|tr [A-Z] [a-z]`
                        grep "$worduncap" $L/helplist.d
			shift
		done
	exit
fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.