Commit Graph

21 Commits (3ba11ea0ed76f2e0d416539366f9ea71822604d4)

Author SHA1 Message Date
bl-ue e871d01c6f
grep: refresh (#5218) 2021-03-28 16:22:29 +02:00
Henrikh Kantuni 4132aea569
grep: -v for in[v]ert (#5216) 2021-02-02 07:44:00 -05:00
Mgs. M. Rizqi Fadhlurrahman 08216c5397
grep: add line numbers on search (#4599) 2020-10-10 16:46:14 -03:00
Szczepan Zalega 8d8f4c61c6 grep: clarify that regexp is used by default
grep searches for regexp by default on Linux, and the '-F' switch is required for the exact string.
Corrected by replacing search_string with search_pattern, or adding the mentioned switch.
2020-08-16 16:41:58 +01:00
Rónán Ó Cuinn c1ee7e5851 grep: include searching recursively through symlinks (#2118) 2018-05-22 18:10:21 +01:00
Agniva De Sarker 3b0383d075
grep: remove 2 examples (#1750)
* grep: remove 2 examples

Make the page conform to our maximum limit of 8 examples

Fixes #1695

* Address review comments
2017-12-07 08:53:40 +05:30
Rahul Kavale bf955d43e6 grep: add flags for lines before and after the match (#1020) 2016-08-29 00:43:14 +01:00
Agniva De Sarker fa8b2d8f92 Apply the 'path/to/item' convention uniformly (#947) 2016-07-13 09:53:22 +01:00
thalesmello 0579b0993c Fix extended regular expressions
By default, grep already uses regular expressions when searching.

The example `grep -e {{^regex$}} {{path/to/file}}` is the same as `grep {{^regex$}} {{path/to/file}}`.

However, because of the comment about extended regular expressions, I mistakenly assumed `-e` was the option to enable it.

I believe most people would refer to `tldr` in this use case looking for the `-E` extended regular expressions.

With this in mind, I believe that example would be better rephrased as this pull request makes it.
2016-07-04 17:40:04 -03:00
Waldir Pimenta 385a89558e grep: simplify -l example to match the others 2016-06-24 10:39:17 +01:00
Waldir Pimenta a2b596861d grep.md: "something" → "search_string"; -r → -rI 2016-06-23 18:50:38 +01:00
Ayakashi 777305c630 grep.md: add -l example (#913) 2016-06-21 08:11:27 +01:00
Waldir Pimenta 4fb0b58900 make extended regex character list more readable 2016-04-22 14:23:06 +01:00
Waldir Pimenta 7782d92820 various tweaks to grep
- use "case-insensitive" in the description of the -i option to make the initialism clear
- use path/to/file instead of file_path
- mention extended regex syntax and expand first occurrence to spell "regular expression"
- clarify wording of the -C example description
2016-04-22 12:24:24 +01:00
Ahmet Kun 798ea018a0 grep: add -i option 2016-01-28 00:12:10 +02:00
Ruben Vereecken 066582e8ea Formatted all pages according to guidelines. 2016-01-08 09:38:59 +01:00
Antonio b0adce01cb grep: add line number 2016-01-05 00:30:21 -05:00
lord63 56a7cba656 Fix lint for common 2015-10-23 08:02:34 +08:00
André König 457e648311 Fixed token syntax. 2014-07-27 14:10:52 +02:00
André König 6875834b79 Added invert match parameter. 2014-07-27 10:23:56 +02:00
rprieto f00bf64426 Move pages back into a "pages" folder 2014-03-04 23:28:29 +11:00