6

[ubuntu] Shell Acript Help

view full story
linux-howto

http://ubuntuforums.org – Hi, I have created the below shell script: Quote: #!/bin/bash TotalData=$(grep dove /var/log/auth.log | grep "authentication failure" | awk '// {print $13 "," $14}' | replace "ruser=" "" | replace "rhost=" "") $(iptables -F input-pop-hack-blocked) for i in $TotalData do UserName=$(echo $i | cut -d"," -f 1) UserIp=$(echo $i | cut -d"," -f 2) echo "UserName = $UserName , UserIp = $UserIp " if [ -d "/home/$UserName" ]; then (Hardware)