Path : /proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/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"