/search_file

Yet another rust project from the book

Primary LanguageRustMIT LicenseMIT

Search File

This is a grep like tool for searching lines which contains a given keyword in a file.

Installation

Using Prebuilt Binaries
  • With Bash
    curl -fsSL "https://bina.egoist.dev/imranbarbhuiya/search_file" | sh

    Using Bina

  • Manual Installation

    Prebuilt binaries are available for Windows, Linux, and macOS and can be found attached to the latest release.

Building From Source

Install Rust and then run:

cargo install search_file

Usage

# Case sensitive match
search_file <keyword> <file>
# Case insensitive match
IGNORE_CASE=1 search_file <keyword> <file>

This is my first rust project. So I'm just learning how to create a rust project and publish it to crate.io.