Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Created April 1, 2016 03:31
Show Gist options
  • Save quickgrid/a24548b90576e69e7b162a6a010c656b to your computer and use it in GitHub Desktop.
Save quickgrid/a24548b90576e69e7b162a6a010c656b to your computer and use it in GitHub Desktop.
Bash GREP regex match exact email addresses and show in terminal with color highlight.
#!/bin/bash
grep --color -E -w "^[A-Za-z0-9._]+@[A-Za-z0-9.]+\.[A-Za-z]{2,6}" "EmailAddress.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment