All pastes #65875 Raw Edit

isip.sh

public shellscript v1 · immutable
#65875 ·published 2006-06-15 15:48 UTC
rendered paste body
#!/bin/bash3ip="$1"isip=1  if [[ $ip =~ '[0-9]{1,3}(\.[0-9]{1,3}){3}' ]]then  IFS=.  for n in $ip  do    ((n < 256)) || exit 1  done  exit 0 fiexit 1