A-atmos / grep.rs

Basic Implementation of GREP using rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grep.rs

Basic Implementation of GREP using rust.

Features

  • search in single file.
  • show line number (-n or --line-number)
  • ignore case sensitive (-i or --ignore-case)
  • search in more files (i.e. greps file.txt file.txt)
  • search using wildcard expression (*/?)
  • search from stdin with pipe (i.e. cat ./Cargo.toml | greps author)
  • search in a directory.
  • search recursive (-r or --recursive)
  • exclude some dir (--exclude-dir=folder)
  • search for multiple words in a single file
  • show readable characters from a binary file
  • search for a certain text from the readable characters from a binary file
  • test for string and wildcards expression in normal text files and binary files

Contributing

Any helps or suggestions will be appreciated.

About

Basic Implementation of GREP using rust.

License:MIT License


Languages

Language:Rust 100.0%