This file is indexed.

/usr/bin/Fgo 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
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#! /bin/csh -f
# Fgo go_file_template    
# determine if files matching go_file_template are currently on-line by
# searching the paths in FER_GO

# 8/92 bug fix: on SUNs /bin/test can accept only one arg.  Use nonomatch
# to resolve the list of files matching template and pass only one name to test
#
# utterly modified for osf port.  11.8.93 *kob* Allow inclusion of 
#  "-help", "-l", and "-more" options.  Also allows for desired file
# to end in ".jnl"
# 21mar94 *kob* Solaris port -----
#		  /bin/test doesn't exist on solaris (sunos 5.x) so had to 
#		  do a check for that OS and then point it to /usr/ucb/test
# 5may94 *kob* 	Ultrix bug - no /usr/bin/grep
#		 should have been /bin/grep
# 30may97 *kob* Linux port - test is in /usr/bin/test
# 19mar01 *acm* Eliminate hard-coded paths, set path as sugg by J.Sirott (added
#               /usr/ucb as well. for TEST definition)
# 24oct10 *amck* Call ferret_paths to get env. variables as necessary

ferret_paths
set path = ($path /bin /usr/bin /sbin /usr/sbin /opt/bin /opt/sbin /usr/ucb) 

#check for proper amount of args.  One arg is the filename or template. 
if ($#argv == 0 || $#argv > 2) then
  echo " "
  echo "Usage: Fgo [-help] [-l] [-more]  go_file[_template]"
  echo "Type Fgo -help for a full description"
  echo " "
  exit 1
endif

# print out help message
if ('$argv[1]' =~ *h*) then
usage:
  echo " "
  echo "Usage:"
  echo "        Fgo [-help] [-l] [-more]  go_file[_template]"
  echo  " "
  echo "where options include: "
  echo "   -help	print this message, option not valid with any other"
  echo "   -l		generate long listing, without description of tool"
  echo "   -more	more files matching given template"
  echo " "
  echo "These options precede either the go file, if it is known,"
  echo "or a go file template.  All files found matching the given template"
  echo "are then listed, or more'd if the -more option is passed. All options"
  echo "are mutually exclusive. To see all of the Go tools/journal files"
  echo "available, enter: "
  echo "       Fgo '*'"
  echo "It is important to have the single quotes around the asterisk."
  echo " " 
  exit 1
endif

#set some variables
set num_args = $#argv
set nonomatch
set found = 0

# ACM eliminate this and replace $TEST with just test throughout
#check for sunos 5.x
#if (`uname` =~ *Sun* && `uname -r` =~ *5.*) then
#	set TEST = /usr/ucb/test
#else if (`uname` =~ *inux* ) then
#	set TEST = /usr/bin/test
#else
#	set TEST = /bin/test
#endif

# check to see if file 
# check to see if file contains .jnl or not
if ($argv[$num_args] =~ *.jnl*) then
	set tag = 1
else
	set tag = 0
endif


# if there is only one argument, it must be the file name, otherwise it
# is a usage error
if ($num_args == 1) then
#check for usage error
  if ($argv[1] =~ *-l* || $argv[1] =~ *-hel* || $argv[1] =~ *-mor*) goto usage
  foreach fpath ($FER_GO)
	cd $fpath
# check for existance of an extension.  If no extension, apply .jnl default
	if ($tag) then
		set flist = *$argv*
	else
		set flist = *$argv*.jnl
	endif
	test -f $flist[1]
	if ($status == 0) then   
      		echo "* * * * * * * * in $fpath"
		foreach file ($flist)
		echo `ls $file`: `egrep '[ ][dD][eE][sS][cC][rR][iI][p	P][tT][iI][oO][nN]:[ ]' $file ` | sed -e "s/\![ ][dD][eE][sS][cC][rR][iI][pP][tT][iI][oO][nN]:[ ]//"
		end
		set found = 1
      		echo " " 
   	endif
   end
	goto the_end
#if num_args is two, then we either have to do an ls -l, or a more.
#cannot do both.
else if ( $num_args == 2 ) then
#do a long listing
	switch ($argv[1]) 
	  case '*l*' :
		foreach fpath ($FER_GO)
   			cd $fpath
   			set flist = *$argv[2]*
    			test -f $flist[1] >& /dev/null
    			if ($status == 0) then    
      			   echo "* * * * * * * * in $fpath"
			   if ($tag) then
      			   	ls -l $argv[2]
			   else	
				ls -l *$argv[2]*.jnl
			   endif
      			   set found = 1
      		 	   echo " " 
   			endif
		end
	     breaksw
	  case '*mor*':
# more each file we come across which matches the template.
		foreach fpath ($FER_GO)
   			cd $fpath
   			set flist = *$argv[2]*
    			test -f $flist[1] >& /dev/null
			if ($status == 0) then    
      			   echo "* * * * * * * * in $fpath"
			   if ($tag) then
      			   	more $argv[2]
			   else	
				more *$argv[2]*.jnl
			   endif
      			   set found = 1
      		 	   echo " " 
   			endif
		end
	     breaksw
	  default:
	     go to usage
	endsw	     
 	goto the_end
endif


the_end:
if ( $found == 0 ) then
   if ($tag) then
	   echo "No files matching $argv are on line"
   else
	   echo "No files matching $argv.jnl are on line"
   endif
endif