Add grep command

Grep and count number of empty lines
This commit is contained in:
I-Man Ng 2019-05-09 00:00:37 +08:00 committed by GitHub
parent aa8663ed6d
commit 1f17f61bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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