Skip to content

Commit d3ee13a

Browse files
authored
{e, f, r, bze, bzf, ze, zf}grep: convert to alias; {lze, lzf, xze, xzf}grep: standardize alias; zgrep: fix description (#19920)
1 parent 75f4337 commit d3ee13a

File tree

12 files changed

+22
-168
lines changed

12 files changed

+22
-168
lines changed

pages/common/bzegrep.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
# bzegrep
22

3-
> Find extended `regex` patterns in `bzip2` compressed files using `egrep`.
4-
> More information: <https://manned.org/bzegrep>.
3+
> This command is an alias of `bzgrep --extended-regexp`.
54
6-
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):
5+
- View documentation for the original command:
76

8-
`bzegrep "{{search_pattern}}" {{path/to/file}}`
9-
10-
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive):
11-
12-
`bzegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
13-
14-
- Search for lines that do not match a pattern:
15-
16-
`bzegrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}`
17-
18-
- Print file name and line number for each match:
19-
20-
`bzegrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
21-
22-
- Search for lines matching a pattern, printing only the matched text:
23-
24-
`bzegrep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}`
25-
26-
- Recursively search files in a bzip2 compressed tar archive for a pattern:
27-
28-
`bzegrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/file}}`
7+
`tldr bzgrep`

pages/common/bzfgrep.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
# bzfgrep
22

3-
> Find any fixed strings separated by new lines in `bzip2` compressed files using `fgrep`.
4-
> More information: <https://manned.org/bzfgrep>.
3+
> This command is an alias of `bzgrep --fixed-strings`.
54
6-
- Search for lines matching the list of search strings separated by new lines in a compressed file (case-sensitive):
5+
- View documentation for the original command:
76

8-
`bzfgrep "{{search_string}}" {{path/to/file}}`
9-
10-
- Search for lines matching the list of search strings separated by new lines in a compressed file (case-insensitive):
11-
12-
`bzfgrep {{[-i|--ignore-case]}} "{{search_string}}" {{path/to/file}}`
13-
14-
- Search for lines that do not match the list of search strings separated by new lines in a compressed file:
15-
16-
`bzfgrep {{[-v|--invert-match]}} "{{search_string}}" {{path/to/file}}`
17-
18-
- Print file name and line number for each match:
19-
20-
`bzfgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_string}}" {{path/to/file}}`
21-
22-
- Search for lines matching a pattern, printing only the matched text:
23-
24-
`bzfgrep {{[-o|--only-matching]}} "{{search_string}}" {{path/to/file}}`
25-
26-
- Recursively search files in a bzip2 compressed tar archive for the given list of strings:
27-
28-
`bzfgrep {{[-r|--recursive]}} "{{search_string}}" {{path/to/file}}`
7+
`tldr bzgrep`

pages/common/egrep.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
# egrep
22

3-
> Find patterns in files using extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`).
4-
> More information: <https://manned.org/egrep>.
3+
> This command is an alias of `grep --extended-regexp`.
54
6-
- Search for a pattern within a file:
5+
- View documentation for the original command:
76

8-
`egrep "{{search_pattern}}" {{path/to/file}}`
9-
10-
- Search for a pattern within multiple files:
11-
12-
`egrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}`
13-
14-
- Search `stdin` for a pattern:
15-
16-
`cat {{path/to/file}} | egrep {{search_pattern}}`
17-
18-
- Print file name and line number for each match:
19-
20-
`egrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
21-
22-
- Search for a pattern in all files recursively in a directory, ignoring binary files:
23-
24-
`egrep {{[-r|--recursive]}} --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
25-
26-
- Search for lines that do not match a pattern:
27-
28-
`egrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}`
7+
`tldr grep`

pages/common/fgrep.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
# fgrep
22

3-
> Matches fixed strings in files.
4-
> Equivalent to `grep -F`.
5-
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
3+
> This command is an alias of `grep --fixed-strings`.
64
7-
- Search for an exact string in a file:
5+
- View documentation for the original command:
86

9-
`fgrep {{search_string}} {{path/to/file}}`
10-
11-
- Search only lines that match entirely in one or more files:
12-
13-
`fgrep {{[-x|--line-regexp]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}`
14-
15-
- Count the number of lines that match the given string in a file:
16-
17-
`fgrep {{[-c|--count]}} {{search_string}} {{path/to/file}}`
18-
19-
- Show the line number in the file along with the line matched:
20-
21-
`fgrep {{[-n|--line-number]}} {{search_string}} {{path/to/file}}`
22-
23-
- Display all lines except those that contain the search string:
24-
25-
`fgrep {{[-v|--invert-match]}} {{search_string}} {{path/to/file}}`
26-
27-
- Display filenames whose content matches the search string at least once:
28-
29-
`fgrep {{[-l|--files-with-matches]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}`
7+
`tldr grep`

pages/common/lzegrep.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# lzegrep
22

33
> This command is an alias of `xzgrep --extended-regexp`.
4-
> See also: `egrep`.
54
65
- View documentation for the original command:
76

pages/common/lzfgrep.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# lzfgrep
22

33
> This command is an alias of `xzgrep --fixed-strings`.
4-
> See also: `fgrep`.
54
65
- View documentation for the original command:
76

pages/common/rgrep.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
11
# rgrep
22

3-
> Recursively find patterns in files using `regex`.
4-
> Equivalent to `grep -r`.
5-
> More information: <https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options>.
3+
> This command is an alias of `grep --recursive`.
64
7-
- Recursively search for a pattern in the current working directory:
5+
- View documentation for the original command:
86

9-
`rgrep "{{search_pattern}}"`
10-
11-
- Recursively search for a case-insensitive pattern in the current working directory:
12-
13-
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
14-
15-
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()`, and `|`) in the current working directory:
16-
17-
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
18-
19-
- Recursively search for an exact string (disables `regex`) in the current working directory:
20-
21-
`rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"`
22-
23-
- Recursively search for a pattern in a specified directory (or file):
24-
25-
`rgrep "{{search_pattern}}" {{path/to/file_or_directory}}`
7+
`tldr grep`

pages/common/xzegrep.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# xzegrep
22

33
> This command is an alias of `xzgrep --extended-regexp`.
4-
> See also: `egrep`.
54
65
- View documentation for the original command:
76

pages/common/xzfgrep.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# xzfgrep
22

33
> This command is an alias of `xzgrep --fixed-strings`.
4-
> See also: `fgrep`.
54
65
- View documentation for the original command:
76

pages/common/zegrep.md

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
# zegrep
22

3-
> Find extended `regex` patterns in compressed files using `egrep`.
4-
> More information: <https://manned.org/zegrep>.
3+
> This command is an alias of `zgrep --extended-regexp`.
54
6-
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()`, and `|`) in a compressed file (case-sensitive):
5+
- View documentation for the original command:
76

8-
`zegrep "{{search_pattern}}" {{path/to/file}}`
9-
10-
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()`, and `|`) in a compressed file (case-insensitive):
11-
12-
`zegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
13-
14-
- Search for lines that do not match a pattern:
15-
16-
`zegrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}`
17-
18-
- Print file name and line number for each match:
19-
20-
`zegrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
21-
22-
- Search for lines matching a pattern, printing only the matched text:
23-
24-
`zegrep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}`
25-
26-
- Recursively search files in a compressed file for a pattern:
27-
28-
`zegrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/file}}`
7+
`tldr zgrep`

0 commit comments

Comments
 (0)