while read line; do
if [[ "$line" =~ ^((\([0-9]{3}\) )|[0-9]{3}-)[0-9]{3}-[0-9]{4}$ ]]; then
echo $line
fi
done < "file.txt"
For further actions, you may consider blocking this person and/or reporting abuse
while read line; do
if [[ "$line" =~ ^((\([0-9]{3}\) )|[0-9]{3}-)[0-9]{3}-[0-9]{4}$ ]]; then
echo $line
fi
done < "file.txt"
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)