Results 1 to 3 of 3
Thread: bash comman/bash script
-
12-25-2004, 05:45 PM #1Junior Guru Wannabe
- Join Date
- Jan 2004
- Posts
- 60
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
-
12-25-2004, 06:30 PM #2Web Hosting Master
- Join Date
- May 2001
- Location
- HK
- Posts
- 3,082
-
12-25-2004, 06:50 PM #3Junior Guru Wannabe
- Join Date
- Jan 2004
- Posts
- 60
sweeeet :d thanks!