An open API service indexing awesome lists of open source software.

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)

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
```