ich habe folgendes Shellscript:
Code: Select all
#!/bin/bash
IPTABLES="/sbin/iptables"
$IPTABLES -nvxL | grep XX.XX.XX.XX | awk '{ print $2 }'
Wenn ich nun die IPTABLES Zeile anpasse ins6:/test# sh test.sh
478546
78549985
Code: Select all
$IPTABLES -nvxL | grep XX.XX.XX.XX | awk '{ print $2 }' | head -n1MfG
michseel2
