Timeline for How do I match multiple number of digits using [:digit:] in grep?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 10, 2019 at 18:35 | comment | added | K.Mole | It is CentOS. Adding -E option will make it work. It's quite interesting to know that -E is not necessary for GNU grep to understand the '+' sign | |
| Jul 4, 2019 at 1:09 | answer | added | cycollins | timeline score: 5 | |
| Jul 3, 2019 at 23:46 | comment | added | John1024 |
Some of your examples will work when using GNU grep. Are you on MacOS? In any case, just add the -E option and then echo 'i100s'|grep -o '[[:digit:]]+' and echo 'i100s'|grep -o '[[:digit:]]{0,3}' should work on any platform.
|
|
| Jul 3, 2019 at 23:33 | comment | added | steeldriver | What OS / what implementation of grep are you using? | |
| Jul 3, 2019 at 23:30 | review | First posts | |||
| Jul 4, 2019 at 3:47 | |||||
| Jul 3, 2019 at 23:29 | history | asked | K.Mole | CC BY-SA 4.0 |