fgrep

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

Description

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

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

fgrep ([fgrep-arguments, ] search-pattern, filename-or-template [, filenameor-template …]);

Arguments

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.

Return Values

A string that contains the output of fgrep.

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

For more information, see the following: