Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fmlgrep(1F) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ed(1)

egrep(1)

fgrep(1)

fmlcut(1F)

fmlgrep(1F)         (Form and Menu Language Interpreter)        fmlgrep(1F)

NAME
     fmlgrep - search a file for a pattern

SYNOPSIS
     fmlgrep [options] limitedregularexpression [file ...]

DESCRIPTION
     fmlgrep searches file for a pattern and prints all lines that contain
     that pattern. The fmlgrep function uses limited regular expressions
     (expressions that have string values that use a subset of the possible
     alphanumeric and special characters) like those used with ed(1) to
     match the patterns. It uses a compact non-deterministic algorithm.

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

     If file 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
     -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.

DIAGNOSTICS
     fmlgrep returns the following exit values:

     0    Pattern is found (for example, TRUE)

     1    Pattern is not found (for example, FALSE)

     2    An invalid expression was used or file is inaccessible






Page 1                       Reliant UNIX 5.44                Printed 11/98

fmlgrep(1F)         (Form and Menu Language Interpreter)        fmlgrep(1F)

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.

SEE ALSO
     ed(1), egrep(1), fgrep(1), fmlcut(1F).













































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026