match(1f) - find occurrences of a Regular Expression in a file(s). (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
match [-v] [-i] -e EXPRESSION [FILES]| --help| --version
Search for Regular Expressions in input files.
^ beginning of line $ end of line [] class of characters. In a class definition ^ as the first character, means to negate - if not the first character denotes a range of characters . any character * repeat previous character zero or more times \ escape next character
-e EXPRESSION Regular expression describing strings to locate in the input file(s) FILES Names of files to search. Defaults to stdin. -v veto mode. Show lines NOT matching expression -i ignore case --help display this help and exit --version output version information and exit
Sample commands
match ^[A-Z ][A-Z ]*$ <file.txt
John S. Urban
Public Domain
Nemo Release 3.1 | match (1) | February 23, 2025 |