1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

fgrep: remove incorrect use of 'regular expression' (#6427)

This commit is contained in:
Miles Glapa-Grossklag 2021-09-01 05:57:20 -07:00 committed by GitHub
parent 2945238a01
commit 9d3781c328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
# fgrep
> Matches patterns in files.
> Supports simple patterns and regular expressions.
> More information: <https://manned.org/fgrep>.
> Matches fixed strings in files.
> Equivalent to `grep -F`.
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
- 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}}`