function

getfields

A built-in CFEngine function in the data category that returns an integer. getfields is not called from the policy on your hosts.

Signature
getfields(string, string, string, string)
Parameters
  1. string Regular expression to match line (.*)
  2. string Filename to read ("?(/.*))
  3. string Regular expression to split fields (.*)
  4. string Return array name (.*)
Returns
int
Category
data