ezt nem értem: $ if [[ 111.1.1 =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then echo jo ; else echo rossz ; fi jo