Giter Club home page Giter Club logo

grep's Introduction

Hello GREP

A command line mini grep clone app written in Rust.

README Sections: Installation - Options - Examples - License - Acknowledgements

Screenshots of hello_grep


Installation

hello_grep is written in Rust, so you'll need to grab a Rust installation in order to compile it. The recommended way to install Rust for development is from the official download page, using rustup.

Once Rust is installed, you can compile hello_grep with Cargo:

$ git clone https://github.com/juliencrn/hello_grep.git
$ cd hello_grep
$ cargo build --release
$ ./target/release/hello_grep --version
hello_grep 0.1.0

Options

hello_grep 0.1.0

USAGE:
    hello_grep [FLAGS] [OPTIONS] <pattern> [path]...

FLAGS:
    -i, --ignore-case            Make search case insensitive
    -c, --count                  Suppress normal output; instead print a count of matching lines for each input file.
        --color                  Activate color in output.
    -l, --files-with-matches     Suppress normal output; instead print the name of each input file from which output
                                 would normally have been printed. The scanning will stop on the first match.
    -L, --files-without-match    Suppress normal output; instead print the name of each input file from which no output
                                 would normally have been printed. The scanning will stop on the first match.
        --help                   Prints help information
    -v, --invert-match           Invert the sense of matching.
    -x, --line-regexp            Select only those matches that exactly match the whole line.
    -h, --no-filename            Suppress the prefixing of file names on output. This is the default when there is only
                                 one file to search.
    -n, --line-number            Show line number.
    -s, --stats                  Display match statistics at the end.
    -V, --version                Prints version information

OPTIONS:
    -m, --max-count <max>    Stop reading a file after NUM matching lines. [default: 1000]

ARGS:
    <pattern>
    <path>...

Examples

Case sensitive - insensitive (-i, --ignore-case)

Count matches (-c, --count)

Files glob

Invert match (-v, --invert-match)

Show statistics (-s, --stats)

RegExp

echo output in a file

Match whole line (-x, --line-regexp)

Search files (-l, -L)

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

grep's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.