Skip to content

Commit 3218a25

Browse files
committed
patterns text corrected
1 parent 8b62433 commit 3218a25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/patterns.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,28 @@ See ``man grep`` for more options.
7777

7878
![grep string](images/grepstring.png){: style="width: 400px;float: right;padding: 3px;}
7979
80-
!!! Exercise "Search for instances of the word 'string' in file.txt and count them"
80+
!!! Exercise "Search for instances of the word 'contains' in fil.txt and count them"
8181

8282
??? Solution "Click to reveal solution"
8383

8484
```bash
85-
grep -o -i string file.txt | wc -l
85+
grep -o -i contains fil.txt | wc -l
8686
```
8787

88-
!!! Exercise "Search for the lines with instances of 'string' in file.txt and output them to file.out"
88+
!!! Exercise "Search for the lines with instances of 'word' in fil.txt and output them to file.out"
8989

9090
??? Solution "Click to reveal solution"
9191

9292
```bash
93-
grep string file.txt > file.out
93+
grep word fil.txt > file.out
9494
```
9595

96-
!!! Exercise "Search for the lines with instances of 'string' in file.txt and append them to file.out"
96+
!!! Exercise "Search for the lines with instances of 'string' in newfile.txt and append them to file.out"
9797

9898
??? Solution "Click to reveal solution"
9999

100100
```bash
101-
grep string file.txt >> file.out
101+
grep string newfile.txt >> file.out
102102
```
103103

104104
## find

0 commit comments

Comments
 (0)