| Crates.io | fe-cli-vgd |
| lib.rs | fe-cli-vgd |
| version | 0.1.0 |
| created_at | 2024-07-12 13:35:27.582199+00 |
| updated_at | 2024-07-12 13:35:27.582199+00 |
| description | A tool to search files |
| homepage | https://github.com/vishalg0wda/fe-cli |
| repository | https://github.com/vishalg0wda/fe-cli |
| max_upload_size | |
| id | 1300694 |
| size | 25,587 |
fe-cli is a simple command-line application written in Rust that mimics the basic functionality of the grep command. It allows you to search for a specified pattern within a file and outputs the lines containing that pattern.
To install fe-cli, you need to have Rust and Cargo installed. If you don't have Rust installed, you can install it from here.
Clone the repository and build the application using Cargo:
git clone https://github.com/vishalg0wda/fe-cli.git
cd fe-cli
cargo build --release
The executable will be available in the target/release directory.
Run the fe-cli command followed by the pattern you want to search for and the file you want to search in:
./target/release/fe-cli <PATTERN> <FILE>
For example:
./target/release/fe-cli foo example.txt
This command will search for the pattern foo in the file example.txt and print each line that contains the pattern.
Consider the following content in example.txt:
foo bar
baz qux
foo baz
qux foo
Running the command:
./target/release/fe-cli foo example.txt
Will output:
foo bar
foo baz
qux foo
Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure that you follow the Rust coding standards and write tests for your code.
This project is licensed under the MIT.
This project is based on the Rust tutorial crate titled "grrs". Special thanks to the Rust community for their excellent documentation and tutorials.