#!/bin/sh # # pinghosts - ping hosts in /home/olle/file2.txt, output is coloured ( +red=bad). Ver 1.00. # # for host in `awk '/^[0-9]/ { print $1 }' /home/ole/file2.txt` do echo "Checking $file2: \c" ping6 $host 1 2>&1 | \ sed 's/.*no answer.*/[31;1m& [0m/;s/.*is alive.*/[32;2m& [0m/' done
In reply to Re^2: PERL SCRIPT FOR IPv6 LOOK-UP
by sam127
in thread PERL SCRIPT FOR IPv6 LOOK-UP
by sam127
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |