sebastiano.tronto.net

Source files and build scripts for my personal website
git clone https://git.tronto.net/sebastiano.tronto.net
Download | Log | Files | Refs | README

commit 059b3e89e84be7d2296be2f999c6d0b283f35f31
parent e04ede76607de08e779f675d9161d0a61239c6b2
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sat,  2 Sep 2023 18:47:58 +0200

Update blog post

Diffstat:
Msrc/blog/2023-08-20-grep/grep.md | 5+++++
1 file 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 @@ -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.