Skip to content

Commit 0c008a3

Browse files
authored
docs(readme): Updated readme file
1 parent c3b8264 commit 0c008a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@
22
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`.
33

44
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

Comments
 (0)