File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -77,28 +77,28 @@ See ``man grep`` for more options.
7777
7878 {: 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
You can’t perform that action at this time.
0 commit comments