tail_n
Description:
[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.0.54" ) ]
public string[] tail_n (int32 nrlines, string path) throws Error
[ Version ( since = "1.0.54" ) ]
public string[] tail_n (int32 nrlines, string path) throws Error
return last N lines of a file
If the parameter nrlines is a positive number, this returns the last nrlines lines of the file path.
If the parameter nrlines is a negative number, this returns lines from the file path, starting with the @-nrlinesth
line.
If the parameter nrlines is zero, this returns an empty list.
Parameters:
| this |
A GuestfsSession object |
Returns:
|
an array of returned strings, or NULL on error |