diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-09-02 18:47:58 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-09-02 18:47:58 +0200 |
| commit | 059b3e89e84be7d2296be2f999c6d0b283f35f31 (patch) | |
| tree | 8a6dafe71050bd4acd90c4c15884397abf3d73b7 | |
| parent | e04ede76607de08e779f675d9161d0a61239c6b2 (diff) | |
| download | sebastiano.tronto.net-059b3e89e84be7d2296be2f999c6d0b283f35f31.tar.gz sebastiano.tronto.net-059b3e89e84be7d2296be2f999c6d0b283f35f31.zip | |
Update blog post
| -rw-r--r-- | src/blog/2023-08-20-grep/grep.md | 5 |
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 | |||
| 113 | But if anyone asks, you did not learn this from me - UUOC (Useless | 113 | But if anyone asks, you did not learn this from me - UUOC (Useless |
| 114 | Use Of Cat) is a considered a crime in some circles. | 114 | Use 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 | ||
| 117 | be used to hide the file names, so no need for piping cats. However, | ||
| 118 | though present both in OpenBSD's and GNU's versions of `grep`, this | ||
| 119 | option is not POSIX standard.* | ||
| 120 | |||
| 116 | ### Matching only part of a line: `-o` | 121 | ### Matching only part of a line: `-o` |
| 117 | 122 | ||
| 118 | You may not always want the *full line* containing a piece of text. | 123 | You may not always want the *full line* containing a piece of text. |
