I have a huge file that I need to filter out all lines (comma delimited file) that do not contain an email address (determining that by @ character).
Right now what I have is this to find all lines containing the @ sign:
.*,.*,.*@.*,.*$
basically you have 4 values and the 3rd value has the email address.
the replace with: value would be empty.
try replace
^[^@]*$with nothing. Alternatively,grepthe file with your regex and redirect the result into a new file.