mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2024-11-29 07:50:25 +00:00
Add grep command
Grep and count number of empty lines
This commit is contained in:
parent
aa8663ed6d
commit
1f17f61bb2
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ egrep = grep -E # Extended Regular Expression (ERE)
|
|||
pgrep = grep -P # Perl Compatible Regular Expressions (PCRE)
|
||||
rgrep = grep -r # recursive
|
||||
```
|
||||
##### Grep and count number of empty lines
|
||||
```bash
|
||||
grep -c "^$"
|
||||
```
|
||||
|
||||
##### Grep and return only integer
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue