1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00
apps/get_packager_email_addresses.sh

18 lines
528 B
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/bash
if [ ! $1 ] || [ $1 = "-h" ] || [ $1 = "--help" ]; then
echo "Specify builds apps list as parameters" ; exit
fi
pattern="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"
# Grep email addresses from builds apps lists arguments
grep -E -o $pattern $* | \
# Eclude example addresses
grep -v jon@doe.net | grep -vi domain | grep -v johndoe@example.com | \
# Sort, remove duplicate, remove file name with many arguments
sort | uniq | cut -d : -f 2 # | wc -l
# Get number of packagers: uncomment upper line