mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-29 07:50:25 +00:00
Merge pull request #23 from linus/patch-1
Use equivalent regex with PCRE
This commit is contained in:
commit
b912cc99bf
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ grep -c "^$"
|
|||
```bash
|
||||
grep -o '[0-9]*'
|
||||
#or
|
||||
grep -oP '\d'
|
||||
grep -oP '\d*'
|
||||
```
|
||||
##### Grep integer with certain number of digits (e.g. 3)
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue