Friday, April 1, 2016

Bash GREP Showing Exact Email Addresses Matches from Text File


What the code does:

The code below uses GREP to match specific pattern within the text file. If the exact match is found then it show that match in console.

Bash Script Code:

Save the code below in a file with extension ".sh". For example,
GrepRegexExactEmailMatch.sh

Input File:

Save the text below in a file named "EmailAddress.txt"

Running the Code:

Before doing anything make sure the text file and the script file are located in the same directory. In order to run the code just type the code below if you named your script file as "GrepRegexExactEmailMatch.sh".

bash GrepRegexExactEmailMatch.sh

No comments: