# # Script name: search4key_funcs in $FEDIR/scripts # where FEDIR=/apps/nns_com/fea # # Short Desc: 1. Searches the file $FEDIR/scripts/searchfuncs.parmfil # for a user-given keyword. # 2. Returns the concatenated-FEAmenu-option-codes that will # take the user to menu(s) that contain that keyword. # # Called by: feamain in $FEDIR/scripts # # Created by: Blaise Montandon 08Feb96 # Updated : Blaise Montandon 22Sep97 removed /proj# refs # # set -v # while true while : do . $FEDIR/scripts/clearnns echo "\ ************************************************************************** ${HIbold}Keyword search engine -- FEA Function menus:${HIreset} ${HIbold}Example keywords:${HIdim} disk space remove delete compress copy fast-copy browse compare cd change-directory current-directory directory directories director age-sorted size-sorted subdirector sub-director home people /usr/people team shared subs nuclear nuc carrier cvn other othr (SDRC-IDEAS) data-installation office calendar clock calculator mosaic hyper-text mail window rgb image print queue text hpgl postscript pff pfb ps font plot color drafting xerox cut-sheet large-scale (SDRC-IDEAS) picture-file nurestor cadam dxf iges translate translator translat analysis solve model-solution simulation abaqus nastran dataloader unigraphics ug machining machin sheet sheet-metal shell korn editor jot vi ieditor showcase x-window dump terminal driver x3d video graphics view editor screen scraper compile program programming scripts c fortran ip-address brouter ping traceroute packet host who network stats statistics activity top osview sgia sgib processes userids live dead audio sound player editor mouse-enter keyboard mouse button mouse-button drop highlight high-light drag highlight-and-drop ${HIbold}Enter a KEYWORD or KEYWORD-fragment (or null to exit) ==>${HIreset} \c" read NN_KEYWORD NN_JUNK if test "${NN_KEYWORD}" = "" then break fi NN_KEYWORD=`echo $NN_KEYWORD | tr "[A-Z]" "[a-z]"` echo "\ ........................`date`........................ Keyword: ${HIbold}${NN_KEYWORD}${HIreset} Some FEA ${HIbold}menus related to the keyword ${NN_KEYWORD}${HIreset} can be found using the following concatenated options at the FEA main menu: " > $HOME/temp.lis # set -x grep "${NN_KEYWORD}" $FEDIR/scripts/searchfuncs.parmfil | \ awk -F: '{ print ($1) }' | uniq > $HOME/temp2.lis SEARCHLINES=`cat $HOME/temp2.lis | wc -l` if test $SEARCHLINES = 0 then echo " *** No matches. *** Press Enter to continue." read NNS_JUNK continue fi cat $HOME/temp2.lis >> $HOME/temp.lis echo " You can press enter at the KEYWORD prompt in the FEAmenu window to return to the main menu. Then higlight-and-drop any of the above concatenated options onto the FEAmenu window. " >> $HOME/temp.lis # set - xwsh -bg blue4 -fg white \ -title "shoKEYWORDfuncMENUS" -name "shoKEYWORDfuncMENUS" \ -autofork -fn Screen15 \ -geometry 80x22+600+010 \ -e $FEDIR/scripts/shofil $HOME/temp.lis # $FEDIR/scripts/shofil $HOME/temp.lis done