https://github.com/tony-go/grep-lite
Grep emulator written in Rust (exercice from Rust in action book)
https://github.com/tony-go/grep-lite
Last synced: 9 months ago
JSON representation
Grep emulator written in Rust (exercice from Rust in action book)
- Host: GitHub
- URL: https://github.com/tony-go/grep-lite
- Owner: tony-go
- Created: 2021-08-21T16:44:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-21T16:44:36.000Z (over 4 years ago)
- Last Synced: 2025-02-04T16:17:09.238Z (11 months ago)
- Language: Rust
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grep-lite
👋🏼 Hi, during my Rust learning journey I'm trying to publish all my exercises.
`grep-lite` is a little grep emulation.
## Install
Requirements:
- rust
- cargo
```bash
$ cargo build
```
## Run
### Find a pattern in a file
```bash
$ cargo run
```
Example - find `rust` patter in the `README.md` file:
```bash
$ cargo run rust README.md
```
### Find a pattern from stdin
```bash
$ cargo run
```
Example -
```bash
$ cargo run rust
```