File: wnman

package info (click to toggle)
libwn6 6.0-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,996 kB
  • ctags: 3,938
  • sloc: ansic: 45,083; makefile: 924; csh: 274; sh: 12
file content (18 lines) | stat: -rwxr-xr-x 312 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# #!/bin/csh -f

if ( "$1" == "-k" ) then
  pushd $wnlib/doc/man >& /dev/null

  foreach manpage (`egrep -l "$2" *.man | sort`)
    egrep " -- " $manpage  
  end

  popd >& /dev/null
else
  if( -e $wnlib/doc/man/$1.man ) then
    vi -R $wnlib/doc/man/$1.man
  else
    echo "no man page for <$1>"
  endif
endif