You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,14 @@
2
2
Grep is a command-line utility in Unix and Unix-like operating systems used for searching and manipulating text or regular expressions within files. The name "grep" stands for `Global Regular Expression Print`.
3
3
4
4
This implementation is part of the exercise in chapter 11 of the 'Rust Programming Language' book.
5
+
6
+
## Usage
7
+
The program accepts two arguments:
8
+
1. The string to search for, and
9
+
2. The file to search in
10
+
11
+
As an example,
12
+
```sh
13
+
cargo run -- body poem.txt > output.txt
14
+
```
15
+
Will search for the string `body` in `poem.txt` and write the lines containing that string to output.txt.
0 commit comments