search-ptrn

Crates.iosearch-ptrn
lib.rssearch-ptrn
version0.1.1
sourcesrc
created_at2024-01-24 12:32:35.465995
updated_at2024-01-24 12:39:26.378855
descriptionA tool to search files
homepagehttps://github.com/simplysabir/search-ptrn
repositoryhttps://github.com/simplysabir/search-ptrn
max_upload_size
id1112096
size9,968
Sabir Khan (simplysabir)

documentation

README

Pattern Search CLI Tool

Overview

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.

Features

  • Pattern Search: Quickly find lines in a file that contain a specific pattern.
  • Easy to Use: Straightforward command-line interface with minimal setup.

Installation

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

Usage

search-ptrn -- word_to_search_for specify_file_path

Error Handling

The tool provides informative error messages in case of file reading or other execution issues, making it easier to identify and troubleshoot problems.

Contributions

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.

Commit count: 0

cargo fmt