Path : /proc/2/root/proc/self/root/var/lib/zabbix/ |
Current File : //proc/2/root/proc/self/root/var/lib/zabbix/email_broken_users.sh |
#!/bin/bash data=$(cat /var/log/broken-users.log | awk '{print $6}' | sort | uniq -c) hooked=$(echo "$data" | grep hooked | awk '{print $1}') pointed=$(echo "$data" | grep pointed | awk '{print $1}') total=$((hooked + pointed)) echo "$total"