mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
Add grep command
Grep and count number of empty lines
This commit is contained in:
parent
aa8663ed6d
commit
1f17f61bb2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user