Skip to content

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.

grep - new one-liner - signed-off-by: trimstray <[email protected]>

trimstray48ac062592b1
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 &nbsp;[<sup>[TOC]</sup>](#anger-table-of-contents)
##### Table of Contents