mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
18 lines
528 B
Bash
Executable file
18 lines
528 B
Bash
Executable file
#!/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
|