egrep


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( deprecated = true , since = "1.0.66" ) ]
public string[] egrep (string regex, string path) throws Error

Warning: egrep is deprecated.

return lines matching a pattern

Note:

In new code, use grep instead

This calls the external egrep program and returns the matching lines.

Parameters:

this

A GuestfsSession object

Returns:

an array of returned strings, or NULL on error