-
Notifications
You must be signed in to change notification settings - Fork 0
Arna03v/Rust-book-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
### Command Line Interface For finding lines in your text with certain words. Can be case sensitive or insensitive depending on the user. To run the program, ## Upload the text file in the parent directory of the of the src folder, i.e., in the minigrep folder To push the output to output.text -> cargo run <query> <filename> > output.txt To change the case senstive -> export CASE_SENSITIVE=true and then unset CASE_SENSITIVE (this line only works for git bash) # Like a personal mini-grep ## "lib.rs" contains: # 1. run : It first reads the file that is passed in the arguments, then calls search_case_senstive or search_case_insensitive based on the case preference and returns the lines if there are lines with the query in the text file. # 2. search (both cases): Searches for the lines that have contain the passed query and retirn it as a Vec<&str>
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published