pattern matching
Hi all..
I am trying to match a number with atleast 5 digits but following is not working echo 123456 | grep '\d{5,}' Can anyone help me please Thanks in advance... |
try that instead
Code:
echo 123456 | grep '[0-9]\{5,\}' |
Grep uses standard regex's unless told otherwise - that's a perl regex. What you want can also be done with character classes. See the manpage.
|
All times are GMT -5. The time now is 10:28 PM. |