https://github.com/jes/emph
Emphasise matching lines with colour.
https://github.com/jes/emph
Last synced: 22 days ago
JSON representation
Emphasise matching lines with colour.
- Host: GitHub
- URL: https://github.com/jes/emph
- Owner: jes
- Created: 2013-01-12T18:20:10.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T19:52:15.000Z (about 10 years ago)
- Last Synced: 2025-01-23T03:44:19.292Z (over 1 year ago)
- Language: Perl
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
emph - emphasise matching lines with colour
SYNOPSIS
emph PATTERN...
DESCRIPTION
This program operates similarly to grep(1). It takes input from stdin,
and colours any lines that match a regex described by one of the
arguments. Multiple patterns may be specified, and each one will receive
a different colour (well, there are 12 colours; they repeat after that).
Patterns specified sooner will match sooner and prevent matching of
later patterns. For example:
$ emph foo bar < file
Lines containing "foo" will be red, and lines containing "bar" but NOT
"foo" will be green, and other lines will not be coloured.
AUTHOR
James Stanley