Created
March 11, 2019 21:22
-
-
Save nurlanf/ade1db00a3effc870b9c1d5df65de83a to your computer and use it in GitHub Desktop.
Useful scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
display_usage() { | |
echo "Usage: $0 <filename>" | |
} | |
if [ $# -eq 0 ] | |
then | |
display_usage | |
exit 1 | |
fi | |
grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' $1 | sort | uniq -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment