Grab Email Addresses from a Text File Using Grep
Via the command line:
grep -E -o --color "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" source.txt > output.txt
* * *
Via the command line:
grep -E -o --color "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" source.txt > output.txt
* * *
« Convert Kilometers to Miles in Your Head » Put a Mac to Sleep via the Command Line
Or, see a list of articles