Commit Graph

15 Commits (b8dd048a93b431ea1671b0e6797c1c926b231ada)

Author SHA1 Message Date
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