Skip to content

Instantly share code, notes, and snippets.

@niedzielski
Last active December 26, 2017 20:09
Show Gist options
  • Save niedzielski/9e441cae1a341c5363998f2d89deec99 to your computer and use it in GitHub Desktop.
Save niedzielski/9e441cae1a341c5363998f2d89deec99 to your computer and use it in GitHub Desktop.
Highlight words but don't omit nonmatching lines.
echo -e 'foo\n\bar\nbaz'|grep -E 'a|$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment