--- nfo/bash/getns 2004/10/12 22:23:11 1.1 +++ nfo/bash/getns 2004/10/12 22:31:21 1.2 @@ -1,9 +1,9 @@ #!/bin/sh #--------------------------------------------------------------------- -A='getns' -B='rabit@netfrag.org, 11.10.2004 - 12.10.2004' -C="$A - Get nameserver" -I='$Id: getns,v 1.1 2004/10/12 22:23:11 rabit Exp $' +N='getns' +C='rabit@netfrag.org, 11.10.2004' +F="$N - Get nameserver" +I='$Id: getns,v 1.2 2004/10/12 22:31:21 rabit Exp $' #--------------------------------------------------------------------- NSList='/etc/resolv.conf' @@ -31,13 +31,13 @@ ;; esac -$E "$YW$C$GY\n($B)\n($I)" +$E "$YW$F$GY ($C)\n($I)" $E $B1'Usage:'$B0 -$E ' '$B1$A' '$B0 +$E ' '$B1$N' '$B0 $E " Print the $B1${B0}ths nameserver IP from '$B1$NSList$B0'." $E " If no name servers are available result is empty, if $B1$B0 is greater" $E " than server entries available, the last one is printed." -$E ' '$B1$A' -c'$B0 +$E ' '$B1$N' -c'$B0 $E " Print the count of name server entries in '$B1$NSList$B0'." -$E ' '$B1$A' [-h|--help]'$B0 +$E ' '$B1$N' [-h|--help]'$B0 $E " Show this help and exit."