All pastes #729517 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-08 02:01 UTC
rendered paste body
#!/bin/sh
clear


printf "ip address?: "
read ip

ipchk=`ifconfig | grep "$ip"`

if [ $ipchk ] ; then
  echo "Valid Ip."
else
  echo "Invalid Ip"
  printf "ip address?: "
  read ip
fi