Skip to content
Search

Fgrep

lastmod 2021-01-29created 2021-01-291 edits

Called 'Fixed grep' or 'Fast grep', it treats every character literally. That is, it treats even the metacharacters of regular expressions as ordinary characters. It can search for a list of fixed strings using the Aho-Corasick algorithm.

Example

An example that prints lines containing [A-Z]****[0-9]..$5.00 is shown below.

fgrep '[A-Z]****[0-9]..$5.00' [FILE]

See also

author Zer0 sitemap