Skip to content

s93chen/grepaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

grepaw

Grepaw is a grep-like line-oriented text searching tool, written in C++. It can:

  • read lines from a file and search for specified pattern
  • traverse a directory and search for pattern in all regular files
  • read from stdin and search for specified pattern

TODO:

  • Add search using KMP (Knuth-Morris-Pratt algorithm)

To use grepaw

make

Search pattern in file:

./grepaw <pattern> <filePath>

Search pattern in directory:

./grepaw <pattern> <dirPath>

Search pattern from stdin:

<cmd> | ./grepaw <pattern>

About

It's a grep, but with a paw. Paw powerrrrrr!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published