/simple_grep

Proof of concept minimal implementation of grep (un-optimized!)

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

travis-ci.com

Simple grep

Simple grep is a minimal implementation of grep entirely written in Python.

Most notable difference between simple_grep and grep:

  • If no file or directory is specified simple_grep starts searching in the current directory.


Missing features:

  • stdin support for Windows

Simple grep is tested on:

  • CPython 2.7 and 3.4-7
    (Tests might fail on Windows)

Running it

$ python -m grep.__main__ -h

Installation

On any system:

$ pip install --user .

On Arch:

$ makepkg

$ sudo pacman -U simple_grep-1.11-1-x86_64.pkg.tar.xz