• Version 4.0 and earlier: egrep() function not available.
  • Version 5.0 and later: egrep() function available.

The egrep() function runs the policy server host’s egrep() command using the provided arguments and files, and returns the result as a string.

egrep ([egrep-arguments, ] search-pattern, filename-or-template [, filenameor-template …]);
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.

A string that contains the output of egrep().

result = egrep ("-w", "word", "filename");
result = egrep ("pattern", "manynames*");

For more information, please see the following: