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

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

fgrep ([fgrep-arguments, ] search-pattern, filename-or-template [, filenameor-template …]);
fgrep-arguments Optional. Switch arguments to the policy server host’s fgrep command. Refer to the policy server host’s fgrep 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 fgrep.

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

For more information, please see the following: