Crates.io | search-ptrn |
lib.rs | search-ptrn |
version | 0.1.1 |
source | src |
created_at | 2024-01-24 12:32:35.465995 |
updated_at | 2024-01-24 12:39:26.378855 |
description | A tool to search files |
homepage | https://github.com/simplysabir/search-ptrn |
repository | https://github.com/simplysabir/search-ptrn |
max_upload_size | |
id | 1112096 |
size | 9,968 |
This is a simple command-line interface (CLI) tool written in Rust that allows you to search for a specified pattern within a file. The tool takes a pattern and a file path as inputs, reads the content of the file, and prints the lines containing the specified pattern.
Ensure you have Rust installed on your system. You can install the tool by cloning the repository and building the binary using the following commands:
git clone https://github.com/simplysabir/search-ptrn.git
cd search-ptrn
cargo build --release
The compiled binary will be available in the target/release/ directory.
or simply install it from crates.io
search-ptrn -- word_to_search_for specify_file_path
The tool provides informative error messages in case of file reading or other execution issues, making it easier to identify and troubleshoot problems.
Contributions to this project are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
For more information about my other projects and contributions, visit GitHub or Portfolio.