Grep implementation in rust.
- search in single file.
- show line number (-n or --line-number)
- ignore case sensitive (-i or --ignore-case)
- search in more files (i.e.
perg file.txt file.txt
) - search from stdin (i.e.
perg -
orperg lol -
) - search from stdin with pipe (i.e.
cat ./Cargo.toml | perg author
) - search in a directory.
- search recursive (-r or --recursive)
- search recursive following symlink (-R or --dereference-recursive)
- exclude some dir (--exclude-dir=folder)
Any helps or suggestions will be appreciated.