mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 17:06:05 +02:00
fgrep: remove incorrect use of 'regular expression' (#6427)
This commit is contained in:
parent
2945238a01
commit
9d3781c328
1 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
||||||
# fgrep
|
# fgrep
|
||||||
|
|
||||||
> Matches patterns in files.
|
> Matches fixed strings in files.
|
||||||
> Supports simple patterns and regular expressions.
|
> Equivalent to `grep -F`.
|
||||||
> More information: <https://manned.org/fgrep>.
|
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
|
||||||
|
|
||||||
- Search for an exact string in a file:
|
- Search for an exact string in a file:
|
||||||
|
|
||||||
|
@ -20,10 +20,10 @@
|
||||||
|
|
||||||
`fgrep -n {{search_string}} {{path/to/file}}`
|
`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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue