-1

How to grep (+(xx)xxx xxx xxx) a type of phone numer like this. I am looking for exacly (+(48)xxx xxx xxx)

Kvrsa
  • 1
  • 1
  • Please add to your question (no comment): What have you searched for, and what did you find? What have you tried, and how did it fail? – Cyrus May 31 '22 at 17:03
  • Does this answer your question? [grep with regex for phone number](https://stackoverflow.com/questions/2269586/grep-with-regex-for-phone-number) – Andy Lester May 31 '22 at 17:16

1 Answers1

1
$ echo '+(48)123 456 768' | grep '+(48)[0-9][0-9][0-9] [0-9][0-9][0-9] [0-9][0-9][0-9]'
+(48)123 456 768
Doj
  • 1,244
  • 6
  • 13
  • 19