fmlgrep man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

fmlgrep(1F)			 FMLI Commands			   fmlgrep(1F)

NAME
       fmlgrep - search a file for a pattern

SYNOPSIS
       fmlgrep [-b] [-c] [-i] [-l] [-n] [-s] [-v]
	    limited_regular_expression [filename]...

DESCRIPTION
       fmlgrep	searches filename for a pattern and prints all lines that con‐
       tain that pattern. fmlgrep uses limited	regular	 expressions  (expres‐
       sions  that  have  string  values  that	use  a	subset of the possible
       alphanumeric and special characters) like those described on the	  reg‐
       exp(5)  manual page to match the patterns. It uses a compact non-deter‐
       ministic algorithm.

       Be careful when using  FMLI special characters (for instance, $, `,  ',
       ")  in  limited_regular_expression.  It is safest to enclose the entire
       limited_regular_expression in single quotes ' ... '.

       If filename is not specified, fmlgrep assumes standard input. Normally,
       each  line  matched  is	copied	to  standard  output. The file name is
       printed before each line matched if there is more than one input file.

OPTIONS
       The following options are supported:

       -b    Precede each line by the block number on which it was found. This
	     can  be  useful in locating block numbers by context (first block
	     is 0).

       -c    Print only a count of the lines that contain the pattern.

       -i    Ignore upper/lower case distinction during comparisons.

       -l    Print only the names of files with matching lines,	 separated  by
	     new-lines. Does not repeat the names of files when the pattern is
	     found more than once.

       -n    Precede each line by its line number in the file (first  line  is
	     1).

       -s    Suppress error messages about nonexistent or unreadable files.

       -v    Print all lines except those that contain the pattern.

EXIT STATUS
       The following exit values are returned:

       0    if the pattern is found (that is, TRUE)

       1    if the pattern is not found (that is, FALSE)

       2    if an invalid expression was used or filename is inaccessible

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │SUNWcs			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       egrep(1), fgrep(1), fmlcut(1F), grep(1), attributes(5), regexp(5)

NOTES
       Lines  are  limited  to	BUFSIZ characters; longer lines are truncated.
       BUFSIZ is defined in /usr/include/stdio.h.

       If there is a line with embedded nulls, fmlgrep will only match	up  to
       the first null; if it matches, it will print the entire line.

SunOS 5.11			  28 Mar 1995			   fmlgrep(1F)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net