minigrep_necimye

Crates.iominigrep_necimye
lib.rsminigrep_necimye
version0.1.1
sourcesrc
created_at2022-10-09 14:46:57.115285
updated_at2022-12-25 16:02:13.185093
descriptionFunctions required to find the lines in file that contains the query. query and file path should be entered through command line preceded by two dashes. Ex: cargo run -- body filename.txt
homepage
repository
max_upload_size
id684031
size335,057
Suraj Pokhrel (necimye)

documentation

README

It is the rust application for searching lines in a file using words like a grep tool in linux

Instruction

Installation

  • Install rust using rustc, and latest visual studio build tools
  • Fork and clone this repo and run cargo install in the command line

Building and Running

  • First write some unit tests, there are already two test written
  • For checking tests run cargo test
  • Build application using cargo build
  • Run application using cargo run text filename.txt
  • if you want to search words by applying environment variable IGNORE_CASE then run using IGNORE_CASE=1 cargo run text filename.txt
  • If you want to remove that environment variable run PS> Remove-Item Env:IGNORE_CASE in the terminal the environment variable will be removed

If you are interesting using this application as a dependency to your big project, use the crate minigrep_necimye and you can use the functions written inside lib.rs

If you are interested to contribute this project, fork and make the new pull requests after cloning this project. You are not allowed to work in the base branch

Some Samples

snap1 snap2

Commit count: 0

cargo fmt