Grepity
Small analog for grep utility
Installation
Install it from RubyGems.org:
$ gem install grepity
Or install it from GitHub.com:
$ git clone git@github.com:kisakov/grepity.git
$ rake install
Usage
Run grepity
for grep text from file
Usage: grepity text file [OPTIONS]
Example: grepity localhost /etc/hosts
Common options:
-i, --ignorecase ignore case sensivity
-w, --word match only full wordmatch
-l, --line show line numbers
-h, --help Help screen
Tests
Use rake test
to run tests
Contributing
- Fork it ( https://github.com/kisakov/grepity/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Ensure all tests passed (
rake test
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request