Skip to content

A simple implementation of the popular Unix utility "grep" in Rust.

License

Notifications You must be signed in to change notification settings

RezwanM/minigrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minigrep

This project aims to create a simpler version of the classic Linux command-line tool grep.

The project was written in Rust.

Preview

$ cd <project_root> 
$ cargo run -- to poem.txt
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running `target\debug\minigrep.exe to poem.txt`
Are you nobody, too?
How dreary to be somebody!

Requirements

  • rustc 1.84.0 (9fc6b4312 2025-01-07)

Setup

The following instructions assume the user has Ubuntu as their local machine's OS. Most instructions should work for other Linux distributions as well, though mileage may vary.

Step 1: Install Rust

Set up Rust (v1.84.0) on the local machine.

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

Step 2: Clone the project

Clone this GitHub repository into the local machine.

git clone --single-branch -b main <project_repo_url> <project_root> 

Step 3: Resolve dependencies

Install missing libraries required for running the project (if any).

cargo build

Step 4: Run the application

Run the application from the command-line.

Usage

cd <project_root>
cargo run

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple implementation of the popular Unix utility "grep" in Rust.

Resources

License

Stars

Watchers

Forks

Languages