aboutsummaryrefslogtreecommitdiff
path: root/grab.1
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-12 02:40:04 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-12 02:40:04 +0100
commita82beacedba9511d2886ecc66a64d622a9b02d7b (patch)
tree6a76b821f1de7bf4eb3c4f52102e6eca952a40e0 /grab.1
parent65a00a04ff2c4ed954aec2efa1cd52713fe641b9 (diff)
Add example
Diffstat (limited to 'grab.1')
-rw-r--r--grab.14
1 files changed, 4 insertions, 0 deletions
diff --git a/grab.1 b/grab.1
index f58ff7f..6bb3ed1 100644
--- a/grab.1
+++ b/grab.1
@@ -132,6 +132,10 @@ For more information regarding SGR parameters see
List all your systems CPU flags, sorted and without duplicates:
.Pp
.Dl $ grab 'x/^flags.*/ x/\ew+/ v/flags/' | sort | uniq
+.Pp
+Search for a pattern in multiple files without printing filenames:
+.Pp
+.Dl $ cat file1 file2 file3 | grab 'x/pattern/'
.Sh SEE ALSO
.Xr grep 1
.Rs