/usr/bin/Fapropos is in ferret-vis 6.6.2-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #! /bin/csh -f
#! *sh* 10/91
#! Fapropos
#! scan the Ferret Users Guide for the indicated string
#! report occurrances with line numbers
#! the command Fhelp can then be used to access the Usegs Guide
#! beginning at a selected line number
# no argument given: explain the ropes
if ($#argv == "0") then
echo ' '
echo ' *** Fapropos - Interactive help for FERRET ***'
echo ' '
echo ' Fapropos scans the FERRET Users Guide for a character string'
echo ' '
echo ' Correct usage is: Fapropos string'
echo ' '
echo ' Example: Fapropos regridding'
echo ' '
echo ' Fhelp can then be used to enter the Users Guide'
echo ' Correct usage is: Fhelp line_number'
exit
endif
# too many arguments: explain the syntax
if ($#argv >= 2) then
echo " "
echo " *** Syntax error in command entered ***"
echo " "
echo " Usage: Fapropos string"
echo " "
echo " Note: multi-word strings need to be enclosed in quotations"
exit
endif
# scan the FERRET manual
grep -in "$argv" /usr/share/doc/ferret-vis/ferret_users_guide.txt | awk -f /usr/share/ferret-vis/bin/Fapropos.awk | more -d
switch ($status)
case "1":
echo " $argv is not found in the FERRET manual"
breaksw
case "2":
echo "Syntax error in string entered"
echo "Multiword strings need surrounding quotations"
endsw
|