From 059b3e89e84be7d2296be2f999c6d0b283f35f31 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 2 Sep 2023 18:47:58 +0200 Subject: Update blog post --- src/blog/2023-08-20-grep/grep.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/blog') 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 But if anyone asks, you did not learn this from me - UUOC (Useless Use Of Cat) is a considered a crime in some circles. +*Update 2023-09-02: I have just discovered that the the `-h` option can +be used to hide the file names, so no need for piping cats. However, +though present both in OpenBSD's and GNU's versions of `grep`, this +option is not POSIX standard.* + ### Matching only part of a line: `-o` You may not always want the *full line* containing a piece of text. -- cgit v1.3