Manual Reference Pages  - searchall (1)


NAME

searchall - will search all files in a directory hierarchy for a given string

CONTENTS

Author
Description
Documented Version
Exit Status
Files
Options
Output
Permissions
Rcs Information
Rcs.sh Version
Synopsis
Warning(s)

DOCUMENTED VERSION

0.21 - 2011/09/16 15:29:55

SYNOPSIS

searchall [-a] [-c] [-f] [-i] [-l] [-n] [-s sizeval] [-x]* [-X]* searchstring [wheretosearch]

DESCRIPTION

This script searchs the entire directory for normal files containing
a particular string.
NOTE:   The "find" ignores files greater than 4 megabytes (to avoid grepping
    the big database files), and any files in /tmp with the name srh.*
    (to avoid grepping the output files this script creates).

OPTIONS

-a allow search of autofs filesystems (default is to not search them)
-c cat the output file after the search is done
-f pass -follow option to find command
-i pass -i flag to grep command
-l pass -l flag to grep command
-n pass -n flag to grep command
-s sizeval
  pass ’-size sizeval’ to find to limit maximum file size <sizeval> (default=-$sflag (‘echo "${sflag}*512/1024/1024" | bc‘ MB))
Note: if you specify this value, you must use ’-’ for less than or ’+’ for greater than; you may use ’c’ character for bytes
-x does ’set -x’ (may be used in functions and external script calls) (see DIAGNOSTICS below)
-X sets debugging level--the number of times -X is specified" (see DIAGNOSTICS below)

FILES

the output file /tmp/srh.dddhhmm (3 letter day of the week|hour|minute)

OUTPUT

    Output files of the form:
        Start Record: Start of search for <search string> in directory <directory name> at <data/time>.
        Zero or more grep/file-tag record groups for found search strings in files.
            1 or more rows where the <search string> is find in a file
            File tag record: ########### Previous file <filename> ###########
        End Record: End of search for <search string> in directory <directory name> at <data/time>.

RCS.SH VERSION

00013

RCS INFORMATION

$Id: searchall,v 0.21 2011/09/16 15:29:55 earneson Exp $
$Author: earneson $
$Date: 2011/09/16 15:29:55 $
$Revision: 0.21 $
$Source: /Users/cvs/scripts/all/Users/earneson/bin/searchall,v $
$State: Exp $

PERMISSIONS

rwxr-xr-x userUID staff

WARNING(S)

40 - The localize script could not be found. Global machine settings can not be set.
41 - The current directory ($PWD) is a symbolic link. Using real directory >$pwdstr< instead.

EXIT STATUS

51 - An unknown option was passed to the script, or syntax of the parameters is wrong.
51 - Unknown option >$errflag<
52 - Invalid number of parameters. At lease 1 parameter must be specified.
56 - The USAGE was requested using -z or -?.

AUTHOR

Edwin Arneson


\\$4  searchall (1) EJA UTILITY
Generated by manServer 1.07 from searchall.1 using man macros. With tweaks by Edwin Arneson.