bash comman/bash script
Hello,I have a file.txt that contains:
1@1.com
2@1.com
1111.com
2@1.com
2@1.com
3@1.com
I was wondering if it was possible to get all the valid emails from this txt file & no duplicates. The result should be written in results.txt
1@1.com
2@1.com
3@1.com
I think it can be done in one line with the "grep" command (http://www.computerhope.com/unix/ugrep.htm), but I don't know.
Any ideas?
Thanks a lot!
Cedric