How about using awk?
awk -F = '/email2/ { print $2}' /etc/emails.conf
* `-F =` Fields are separated by '='
* `'/email2/ { print $2}'` On lines that match "email2", print the second field
How about using awk?
awk -F = '/email2/ { print $2}' /etc/emails.conf
* `-F =` Fields are separated by '='
* `'/email2/ { print $2}'` On lines that match "email2", print the second field