From 1f17f61bb210f803094bbb2c9ea25e1d40f0421d Mon Sep 17 00:00:00 2001 From: I-Man Ng Date: Thu, 9 May 2019 00:00:37 +0800 Subject: [PATCH] Add grep command Grep and count number of empty lines --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8fb05fb..2e337cd 100644 --- a/README.md +++ b/README.md @@ -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