#grep #implemented #version #path #search-file #directory

app rsgrep

A simple version of grep implemented in Rust

5 releases (breaking)

0.5.0 Oct 19, 2019
0.4.0 Oct 10, 2019
0.3.0 Oct 7, 2019
0.2.0 Oct 3, 2019
0.1.0 Oct 2, 2019

#14 in #search-file

Download history 4/week @ 2024-06-30 54/week @ 2024-07-28

58 downloads per month

MIT license

18KB
490 lines

This is a simple version of grep implemented in Rust.

Help:

rsgrep 0.5.0
Christian Blume
A simple version of grep implemented in Rust

USAGE:
    rsgrep [FLAGS] <string> <path>

FLAGS:
    -c, --color          Output colored strings
    -f, --followlinks    Follow links
    -h, --help           Prints help information
    -i, --insensitive    Case insensitive search
    -l, --location       Print filename and line number
    -r, --recursive      Search directories recursively
    -e, --regex          Interpret the search string as a regular expression
    -t, --relative       Print relative filenames
    -V, --version        Prints version information
    -w, --warnings       Show warnings

ARGS:
    <string>    The string to search for
    <path>      The path to search in (file or directory)

Dependencies

~3–11MB
~101K SLoC