Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
akoken committed Oct 22, 2024
1 parent 6f127bb commit 1127c08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ To install Minigrep, you can download binaries or follow these steps:

## Usage

1. Search for "error" in a log file:
1. Search for "to" in a file:
```bash
minigrep error app.log
minigrep to file.txt
```

2. Case-insensitive search for "warning" in a log file:
![image](./assets/1.png)
2. Case-insensitive search for "to" in a file:
```bash
minigrep -i warning app.log
minigrep -i to file.txt
```
![image](./assets/2.png)
3. Show line numbers:
```bash
minigrep -l warning app.log
minigrep -l to file.txt
```
![image](./assets/3.png)

## Contributing

Expand Down
Binary file added assets/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1127c08

Please sign in to comment.