i have a string in text file, i want to grep the email address but it is not working
26,2,12,1,1,0,1,0,12,20,648130864.573339,,"iCloud - Device Locator",,,69FFBE2F-6626-4A4B-8A78-BF7D06DE59C7,7F223B27-9588-4719-81B9-074666A76E1D,com.apple.accountsd,[email protected],
i try: grep -Eo "\b@'[^']*'"
but it not working
i need output: [email protected]
P/s: maybe the field isn't 19th but email is always at the end of the line
grep -o '[^,]*@[^,]*'