Download source code from github:
git clone https://github.com/lnB51/rust_grep
Run the project using Cargo:
cargo run [word for searching] [options] [target]
cargo run hello [options] [target]
cargo run "hello world" [options] [target]
Option for search(search type), currently available parameters: -f
for searching in a file and -s
for searching in a string.
cargo run hello -f myfile.txt
cargo run hello -s "Hello world"
Target for searching in, if selected [option]
is -f
- taget must be a file, if selected [option]
is -s
- must be a string.
cargo run hello -f myfile.txt
cargo run hello -s "Hello world, searching method in string"