aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blog/2023-08-20-grep/grep.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blog/2023-08-20-grep/grep.md b/src/blog/2023-08-20-grep/grep.md
index 18c69bf..47f414b 100644
--- a/src/blog/2023-08-20-grep/grep.md
+++ b/src/blog/2023-08-20-grep/grep.md
@@ -113,6 +113,11 @@ $ cat file1 file2 ... | grep
113But if anyone asks, you did not learn this from me - UUOC (Useless 113But if anyone asks, you did not learn this from me - UUOC (Useless
114Use Of Cat) is a considered a crime in some circles. 114Use Of Cat) is a considered a crime in some circles.
115 115
116*Update 2023-09-02: I have just discovered that the the `-h` option can
117be used to hide the file names, so no need for piping cats. However,
118though present both in OpenBSD's and GNU's versions of `grep`, this
119option is not POSIX standard.*
120
116### Matching only part of a line: `-o` 121### Matching only part of a line: `-o`
117 122
118You may not always want the *full line* containing a piece of text. 123You may not always want the *full line* containing a piece of text.

Generated with cgit - Back to sebastiano.tronto.net