From 9d3781c3284966e3ac0cc3ca7b922c655d9b0405 Mon Sep 17 00:00:00 2001 From: Miles Glapa-Grossklag Date: Wed, 1 Sep 2021 05:57:20 -0700 Subject: [PATCH] fgrep: remove incorrect use of 'regular expression' (#6427) --- pages/common/fgrep.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/fgrep.md b/pages/common/fgrep.md index e4e047c477..8658dd04f8 100644 --- a/pages/common/fgrep.md +++ b/pages/common/fgrep.md @@ -1,8 +1,8 @@ # fgrep -> Matches patterns in files. -> Supports simple patterns and regular expressions. -> More information: . +> Matches fixed strings in files. +> Equivalent to `grep -F`. +> More information: . - Search for an exact string in a file: @@ -20,10 +20,10 @@ `fgrep -n {{search_string}} {{path/to/file}}` -- Display all lines except those that contain the given regular expression: +- Display all lines except those that contain the search string: -`fgrep -v {{regular_expression}} {{path/to/file}}` +`fgrep -v {{search_string}} {{path/to/file}}` -- Display filenames whose content matches the regular expression at least once: +- Display filenames whose content matches the search string at least once: -`fgrep -l {{regular_expression}} {{path/to/file1}} {{path/to/file2}}` +`fgrep -l {{search_string}} {{path/to/file1}} {{path/to/file2}}`