Learn R Programming

packager (version 1.9.0)

grep_log: Grep Lines From a File

Description

Grep Lines From a File

Usage

grep_log(file, pattern, strip = TRUE)

Arguments

file

The path to the file or a character vector holding the lines.

pattern

The pattern to grep for.

strip

Substitute the pattern with the empty string before returning the lines grepped?

Value

A character vector giving the lines.