mirror of
https://github.com/Fechin/reference.git
synced 2026-11-23 06:11:10 +03:00
Added shell highlighting
This commit is contained in:
1 parent
3ce109465a
commit
15e2885842
1 file changed
+7
-7
@@ -15,18 +15,18 @@ Getting started {.cols-5}
|
||||
|
||||
### Usage {.col-span-2}
|
||||
Search standard output (i.e. a stream of text)
|
||||
```
|
||||
grep [options] search_string
|
||||
```shell script
|
||||
$ grep [options] search_string
|
||||
```
|
||||
|
||||
Search for an exact string in file:
|
||||
```
|
||||
grep [options] search_string path/to/file
|
||||
```shell script
|
||||
$ grep [options] search_string path/to/file
|
||||
```
|
||||
|
||||
Print every line in myfile.txt containing the string 'mellon'
|
||||
```
|
||||
grep 'mellon' myfile.txt
|
||||
Print lines in myfile.txt containing the string "mellon"
|
||||
```shell script
|
||||
$ grep 'mellon' myfile.txt
|
||||
```
|
||||
|
||||
Wildcards are accepted in filename.
|
||||
|
||||
Reference in new issue
Block a user