grep-go

command module
v0.0.0-...-b36bff9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: MIT Imports: 1 Imported by: 0

README

grep-go

a grep command written in go

Usage:

grep-go can read from a file(dir) or a pipe.

Help:
NAME:
   grep - a grep written in go. just for study linux and go.

USAGE:
   grep [global options] command [command options] grep PATTERNS [FILE...]
       grep -e  PATTERNS ... [FILE...]
       grep -f -r PATTERN_FILE ... [FILE...]


VERSION:
   0.0.1

AUTHOR:
   tanqiangyes <826285820@qq.com>

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --regexp, -e       This flag treats patterns as regular expressions and looks for content in the corresponding file that matches the regular expression. (default: false)
   --recursive, -r    Whether to look recursively in the path. (default: false)
   --file, -f         get pattern from the file. (default: false)
   --line-number, -n  print the number of lines matched. (default: true)
   --ignore-case, -i  Ignore  case  distinctions,  so that characters that differ, only in case match each other. (default: false)
   --help, -h         show help (default: false)
   --version, -v      print the version (default: false)
TODO:
  • beautification code
  • future add
  • add tests for code

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package grep @Author: tanqiangyes @Emainl: 826285820@qq.com @Date: 2022-05-11 21:09:05 @Description: a grep written in go.
Package grep @Author: tanqiangyes @Emainl: 826285820@qq.com @Date: 2022-05-11 21:09:05 @Description: a grep written in go.
Package tools contains common tools used throughout this application.
Package tools contains common tools used throughout this application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL