egrep
- Version 4.0 and earlier: egrep() function not available.
- Version 5.0 and later: egrep() function available.
Description
The egrep() function runs the policy server host’s egrep() command using the provided arguments and files, and returns the result as a string.
Syntax
egrep ([egrep-arguments, ] search-pattern, filename-or-template [, filenameor-template …]);
Arguments
egrep-arguments | Optional. Switch arguments to the policy server host’s egrep command. Refer to the policy server host’s grep documentation for specifics. |
search-pattern | Required. The regular expression to search for. |
filename-or-template | Required. A file name, possibly with wildcards, to search for the search-pattern. |
Return Values
A string that contains the output of egrep().
result = egrep ("-w", "word", "filename"); result = egrep ("pattern", "manynames*");