mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 00:36:35 +00:00
Use equivalent regex with PCRE
Use the equivalent regex with PCRE. `[0-9]*` (and `\d*`) will output each integer, e.g.: ```bash echo 17 | grep -o '[0-9]*' ``` Whereas `\d` will split it into digits, e.g.: ```bash echo 17 | grep -oP '\d' ``` Signed-off-by: Linus G Thiel <linus@yesbabyyes.se>
This commit is contained in:
parent
c2b96736bd
commit
a97dcf2a3b