#!/bin/bash
[ $(ipcalc "$1" | grep 'INVALID' -c) -eq 0 ]