Documentation
¶
Overview ¶
Package alias provides short names for grep command flags.
Index ¶
Constants ¶
View Source
const Count = command.GrepCount
-c flag: count matching lines instead of printing them
View Source
const Extended = command.GrepExtended
-E flag: extended regex (no-op, Go uses extended regex by default)
View Source
const IgnoreCase = command.GrepIgnoreCase
-i flag: case-insensitive matching
View Source
const Invert = command.GrepInvert
-v flag: invert match (print non-matching lines)
View Source
const LineNumbers = command.GrepLineNumbers
-n flag: prepend line number to each matching line
View Source
const NoCount = command.GrepNoCount
default: print matching lines
View Source
const NoExtended = command.GrepNoExtended
default: fixed-string match
View Source
const NoIgnoreCase = command.GrepNoIgnoreCase
default: case-sensitive matching
View Source
const NoInvert = command.GrepNoInvert
default: normal match
View Source
const NoLineNumbers = command.GrepNoLineNumbers
default: no line numbers
View Source
const NoWholeLine = command.GrepNoWholeLine
default: substring match
View Source
const NoWord = command.GrepNoWord
default: no word boundary constraint
View Source
const WholeLine = command.GrepWholeLine
-x flag: match only if entire line equals pattern
View Source
const Word = command.GrepWord
-w flag: match pattern only at word boundaries
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.