Skip to content

aasserzo/go-grep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Grep

We all know what grep is, come on. This is a task I had to do as part of my Go training.

Installation

Just build it.

go build ./grep.go

Usage

Usage of ./grep:
  -c    Colorize matches.
  -f string
        File path, mutually exclusive with -t. If both are empty, pipe is used.
  -p string
        Pattern to match - mandatory.
  -r    Enables regexp matching, pattern must be a valid regular expression.
  -t string
        Text string, mutually exclusive with -f. If both are empty, pipe is used.

TODO

This can be extended and optimized in so many ways.. Just needed to hand it in already.

About

A grep utility written in GoLang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages