grepf: Pattern matching inside text files

Description Usage Arguments Details

View source: R/utils.R

Description

Reads contents of all files in a directory and matches a pattern line-by-line.

Usage

1
grepf(pattern, path = ".", file.pattern = NULL, ...)

Arguments

pattern

character, pattern to look for

path

directory to look in

file.pattern

pattern to consider among the files

...

other parameters passed on to list.files()

Details

The name is short for: (grep) inside (f)iles


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.