mirror of
https://github.com/YunoHost-Apps/emailpoubelle_ynh.git
synced 2024-09-03 18:26:29 +02:00
Ajout d'un petit script de statistique d'utilisation
This commit is contained in:
parent
e5c0487dd5
commit
88a6195067
1 changed files with 15 additions and 0 deletions
15
stats.sh
Normal file
15
stats.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# @todo : A adapter en php
|
||||
|
||||
FICHIERALIAS="./postfix/virtual"
|
||||
|
||||
echo
|
||||
echo "#### Statistique emailJetable.php ####"
|
||||
echo
|
||||
echo "Nombre d'email validé : `grep -v "^#" $FICHIERALIAS | wc -l`
|
||||
echo "Nombre d'email n'ayant pas été validé : `grep "^#" $FICHIERALIAS | wc -l`
|
||||
echo
|
||||
echo "Top 30 :"
|
||||
grep -v "^#" $FICHIERALIAS | cut -d" " -f2 | sort | uniq -c | sort -nr | head -n 30
|
||||
echo
|
Loading…
Reference in a new issue