Can one suggest a grep command for finding a string in a list of files by providing a part of the string?
I have a list of files in a directory which contains email addresses. I want to extract all email addresses ending with a particular domain name. for example, i want to get a list of all emails ending with "@google.com" in a file.
Directory contains N number of files. The data in each file is a single line seperated with a comma. I have tried so many options with grep command and none worked.
Thanks,