#!/bin/bash CALLERID="$1" REGEX="$2" if echo "$CALLERID" | grep -Pq "$REGEX"; then echo -n "1" else echo -n "0" fi