Skip to content

Minigrep is a very basic command-line utility that performs text searches in files.

License

Notifications You must be signed in to change notification settings

akoken/minigrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minigrep

Minigrep is a very basic command-line utility that performs text searches in files, similar to the traditional grep tool. It's designed to be straightforward and easy to use for basic text searching needs.

Features

  • Search for standard input
  • Case-sensitive and case-insensitive search options

Installation

To install Minigrep, you can download binaries or follow these steps:

  1. Clone the repository:

    git clone https://github.com/akoken/minigrep.git
    cd minigrep
  2. Build the project:

    cargo build --release
  3. The binary will be available in target/release/minigrep

Usage

  1. Search for "rust" in a file:

    minigrep rust file.txt

    image

  2. Case-insensitive search for "RUST" in a file:

    minigrep -i RUST file.txt

    image

  3. Show line numbers:

    minigrep -l memory file.txt

    image

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Minigrep is a very basic command-line utility that performs text searches in files.

Topics

Resources

License

Stars

Watchers

Forks

Languages