pranav_minigrep

Crates.iopranav_minigrep
lib.rspranav_minigrep
version0.1.4
sourcesrc
created_at2022-02-19 16:16:06.634465
updated_at2022-02-19 16:42:52.729357
descriptionMini Version of grep regex command. It finds out the given string and returns the line containing it.
homepage
repository
max_upload_size
id535270
size5,877
Pranav Arora (pranavarora1895)

documentation

README

MiniGrep Rust

This is a Command line utility developed in Rust that parses the keyword from the file and outputs the relevant line.


For Rust Developers

Install this binary crate

$cargo install pranav_minigrep


Clone this repo and follow the given usage:

Usage

  • cargo run <keyword> <filename.txt>
  • Setup the CASE_INSENSITIVE environment variable
  • On your PowerShell run the following commands:
$Env CASE_INSENSITIVE=1
cargo run <keyword> <filename.txt>
  • To deactivate the Environment Variable, run the following command:

Remove-Item Env:CASE_INSENSITIVE


ThankYou!

Commit count: 0

cargo fmt