1fmlgrep(1F)                      FMLI Commands                     fmlgrep(1F)
2
3
4

NAME

6       fmlgrep - search a file for a pattern
7

SYNOPSIS

9       fmlgrep [-b] [-c] [-i] [-l] [-n] [-s] [-v]
10            limited_regular_expression [filename]...
11
12

DESCRIPTION

14       fmlgrep  searches filename for a pattern and prints all lines that con‐
15       tain that pattern. fmlgrep uses limited  regular  expressions  (expres‐
16       sions  that  have  string  values  that  use  a  subset of the possible
17       alphanumeric and special characters) like those described on the   reg‐
18       exp(5)  manual page to match the patterns. It uses a compact non-deter‐
19       ministic algorithm.
20
21
22       Be careful when using  FMLI special characters (for instance, $, `,  ',
23       ")  in  limited_regular_expression.  It is safest to enclose the entire
24       limited_regular_expression in single quotes ' ... '.
25
26
27       If filename is not specified, fmlgrep assumes standard input. Normally,
28       each  line  matched  is  copied  to  standard  output. The file name is
29       printed before each line matched if there is more than one input file.
30

OPTIONS

32       The following options are supported:
33
34       -b    Precede each line by the block number on which it was found. This
35             can  be  useful in locating block numbers by context (first block
36             is 0).
37
38
39       -c    Print only a count of the lines that contain the pattern.
40
41
42       -i    Ignore upper/lower case distinction during comparisons.
43
44
45       -l    Print only the names of files with matching lines,  separated  by
46             new-lines. Does not repeat the names of files when the pattern is
47             found more than once.
48
49
50       -n    Precede each line by its line number in the file (first  line  is
51             1).
52
53
54       -s    Suppress error messages about nonexistent or unreadable files.
55
56
57       -v    Print all lines except those that contain the pattern.
58
59

EXIT STATUS

61       The following exit values are returned:
62
63       0    if the pattern is found (that is, TRUE)
64
65
66       1    if the pattern is not found (that is, FALSE)
67
68
69       2    if an invalid expression was used or filename is inaccessible
70
71

ATTRIBUTES

73       See attributes(5) for descriptions of the following attributes:
74
75
76
77
78       ┌─────────────────────────────┬─────────────────────────────┐
79       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Availability                 │SUNWcsu                      │
82       └─────────────────────────────┴─────────────────────────────┘
83

SEE ALSO

85       egrep(1), fgrep(1), fmlcut(1F), grep(1), attributes(5), regexp(5)
86

NOTES

88       Lines  are  limited  to  BUFSIZ characters; longer lines are truncated.
89       BUFSIZ is defined in /usr/include/stdio.h.
90
91
92       If there is a line with embedded nulls, fmlgrep will only match  up  to
93       the first null; if it matches, it will print the entire line.
94
95
96
97SunOS 5.11                        28 Mar 1995                      fmlgrep(1F)
Impressum