colorexp

command module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

Colorexp

Colorexp is a command line tool that allows coloring of text matches from standard input with multiple colors, something that is not easy to achieve with tools like grep and less.

Colorexp

  • uses the Go regexp format, as documented here.
  • supports overlapping matches (the color for the last pattern that matches will be used)

Usage

Usage: colorexp [options] patterns...
-F, --fixed-strings   Don't interpret regular expression metacharacters.
-H, --highlight       Color by changing the background color.
-i, --ignore-case     Perform case insensitive matching.

Example

Example

Installation

Homebrew on MacOS

brew tap EugenDueck/tap https://github.com/EugenDueck/homebrew-tap
brew install colorexp

All OSes

Build

go build colorexp.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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