Skip to content

cmetallo42/grep-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

go run grep.go [-flags] [file.txt]

Supported Flags

-A - "after" - print +N strings after match
-B - "before" - print +N strings before match
-C - "context" - print ±N (A+B) strings around match
-c  - "count" - print count of matched strings
-i  - "ignore-case" - ignore case
-v - "invert" - instead of match, exclude
-F - "fixed" - exact string full-match
-n - "line num" - print number of matched string

Gopher with magnifier

About

implementation linux sort util

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages