Crates.io | clxrity_lilgrep |
lib.rs | clxrity_lilgrep |
version | 0.1.0 |
source | src |
created_at | 2024-11-15 21:52:26.991808 |
updated_at | 2024-11-15 21:52:26.991808 |
description | A simple grep-like utility written in Rust. |
homepage | |
repository | |
max_upload_size | |
id | 1449646 |
size | 6,573 |
A miniature version of the grep command line tool built with Rust.
Search for a specific word within a file, and the entire line(s) containing that word will be returned to you.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
poem.txt
:cargo run what poem.txt
By default, the search is case sensitive.
If "What" exists but not the search query "what", nothing will be returned.
CASE_INSENSITIVE=
export CASE_INSENSITIVE=true
unset CASE_INSENSITIVE
poem.txt
, and direct the result to output.txt
cargo run what poem.txt > output.txt