mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-08-21 19:33:15 +02:00
Add grep command
Grep and count number of empty lines
This commit is contained in:
@ -99,6 +99,10 @@ egrep = grep -E # Extended Regular Expression (ERE)
|
|||||||
pgrep = grep -P # Perl Compatible Regular Expressions (PCRE)
|
pgrep = grep -P # Perl Compatible Regular Expressions (PCRE)
|
||||||
rgrep = grep -r # recursive
|
rgrep = grep -r # recursive
|
||||||
```
|
```
|
||||||
|
##### Grep and count number of empty lines
|
||||||
|
```bash
|
||||||
|
grep -c "^$"
|
||||||
|
```
|
||||||
|
|
||||||
##### Grep and return only integer
|
##### Grep and return only integer
|
||||||
```bash
|
```bash
|
||||||
|
Reference in New Issue
Block a user