From 48ac062592b1777226df63fb8c6bbdc0ed5dd246 Mon Sep 17 00:00:00 2001 From: trimstray Date: Tue, 9 Apr 2019 08:41:56 +0200 Subject: [PATCH] grep - new one-liner - signed-off-by: trimstray --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 44cc199..ed5a426 100644 --- a/README.md +++ b/README.md @@ -3079,6 +3079,14 @@ grep -v ^[[:space:]]*# filename egrep -v '#|^$' filename ``` +###### Show strings that begins with a dash/hyphen + +```bash +grep -e -- filename +grep -- -- filename +grep "\-\-" filename +``` + #### Shell functions  [[TOC]](#anger-table-of-contents) ##### Table of Contents