Sys.grepline: Which lines do various patterns exist on?

Description Usage Arguments Value Author(s)

Description

Which lines do various patterns exist on?

Usage

1

Arguments

pattern

a grep pattern. no spaces allowed!

file

the file to search within

first

logical: if TRUE, then only return the first match; if FALSE, return all matches

Value

a vector of indices. if pattern is not found, 0 is returned.

Author(s)

Mark Cowley, 2011-08-04


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.