diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1995-12-30 19:02:48 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1995-12-30 19:02:48 +0000 |
| commit | a5b996a7ecea192e05c848269fbfb40c1e7c50ef (patch) | |
| tree | b43d0e66d9963acc026a6322b81fd219d273736b /gnu/usr.bin/man/apropos | |
| parent | df2fbf15a2e56a16c3b54b93a3369b662b6f20e5 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/man/apropos')
| -rw-r--r-- | gnu/usr.bin/man/apropos/apropos | 64 | ||||
| -rw-r--r-- | gnu/usr.bin/man/apropos/apropos.1 | 27 |
2 files changed, 0 insertions, 91 deletions
diff --git a/gnu/usr.bin/man/apropos/apropos b/gnu/usr.bin/man/apropos/apropos deleted file mode 100644 index 8735e5fcdd9d5..0000000000000 --- a/gnu/usr.bin/man/apropos/apropos +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -# -# apropos -- search the whatis database for keywords. -# -# Copyright (c) 1990, 1991, John W. Eaton. -# -# You may distribute under the terms of the GNU General Public -# License as specified in the README file that comes with the man -# distribution. -# -# John W. Eaton -# jwe@che.utexas.edu -# Department of Chemical Engineering -# The University of Texas at Austin -# Austin, Texas 78712 - -PATH=/usr/local/bin:/bin:/usr/ucb:/usr/bin - -libdir=/etc - -if [ $# = 0 ] -then - echo "usage: `basename $0` keyword ..." - exit 1 -fi - -manpath=`/usr/bin/manpath -q | tr : '\040'` - -if [ "$manpath" = "" ] -then - echo "whatis: manpath is null" - exit 1 -fi - -if [ "$PAGER" = "" ] -then - PAGER="/usr/gnu/bin/less -sC" -fi - -while [ $1 ] -do - found=0 - for d in $manpath /usr/lib - do - if [ -f $d/whatis ] - then - grep -i "$1" $d/whatis - status=$? - if [ "$status" = "0" ] - then - found=1 - fi - fi - done - - if [ "$found" = "0" ] - then - echo "$1: nothing appropriate" - fi - - shift -done | $PAGER - -exit diff --git a/gnu/usr.bin/man/apropos/apropos.1 b/gnu/usr.bin/man/apropos/apropos.1 deleted file mode 100644 index 3bb3e17d617e2..0000000000000 --- a/gnu/usr.bin/man/apropos/apropos.1 +++ /dev/null @@ -1,27 +0,0 @@ -.\" Man page for apropos -.\" -.\" Copyright (c) 1990, 1991, John W. Eaton. -.\" -.\" You may distribute under the terms of the GNU General Public -.\" License as specified in the README file that comes with the man 1.0 -.\" distribution. -.\" -.\" John W. Eaton -.\" jwe@che.utexas.edu -.\" Department of Chemical Engineering -.\" The University of Texas at Austin -.\" Austin, Texas 78712 -.\" -.TH apropos 1 "Jan 15, 1991" -.LO 1 -.SH NAME -apropos \- search the whatis database for strings -.SH SYNOPSIS -.BI apropos -keyword ... -.SH DESCRIPTION -apropos searches a set of database files containing short descriptions -of system commands for keywords and displays the result on the -standard output. -.SH "SEE ALSO" -whatis(1), man(1). |
