Skip to content

Chuksremi15/rust_cli_minigrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minigrep

A command-line tool for searching for patterns in files, implemented in Rust. This project is a simplified version of the Unix grep command, built as an exercise while learning Rust.

Features

  • Search for a string within a file.
  • Case-sensitive search by default.
  • Case-insensitive search via an environment variable.

Prerequisites

  • Rust installed on your system.

Building the Project

Navigate to the root directory of the project in your terminal and run:

cargo build
# Building the Project

Running the Project

target\debug\minigrep.exe <query> <file_path>

Case-Insensitive Search

IGNORE_CASE=1 target/debug/minigrep "rust" example.txt

About

Rust GREP(globally search a regular expression and print) CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages