Shell:grep – Dell Acceleration Appliances for Databases User Manual

Page 134

Advertising
background image

--arg

<list>

Additional arguments to pass to the function (numbered

$3

and higher)

(See

help –-all

for details on all other options.)

Arguments

values

Collection of arguments to iterate on

input

First input value

function

Closure, where

$1

is the value and

$2

is the input

shell:grep

Prints lines matching the given pattern.

Syntax

shell:grep [options] pattern

Options

--line-number

or

-n

Prefix each line of output with the line number within its input file.

--invert-match

or

-v

Invert the sense of matching, to select non-matching lines.

--word-regexp

or

-w

Select only those lines containing matches that form whole words. The

test is that the matching substring must either be at the beginning of
the line, or preceded by a non-word constituent character. Similarly, it
must be either at the end of the line or followed by a non-word
constituent character. Word-constituent characters are letters, digits,
and the underscore.

--line-regxp

or

-x

Select only those matches that exactly match the whole line.

--ignore-case

or

-i

Ignore case distinctions in both the PATTERN and the input files.

--count

or

-c

Print only a count of matching lines per FILE.

--color

<colorOption> Use markers to distinguish the matching string. WHEN may be ‘always’,

‘never’ or ‘auto’. The default is ‘auto’.

--before-context

or

-B

Print NUM lines of leading context before matching lines. This places a
line containing ’--’ between contiguous groups of matches. The default
is -1.

--after-context

or

-A

Print NUM lines of trailing context after matching lines. This places a line
containing ’--’ between contiguous groups of matches. The default is -1.

134

Advertising