commit bd31bc9128641ac9e34ff8d0e38b066de79fab79
parent 40b3ca5266edc22d17d4d2b7ea7c4fd7a33d4cea
Author: Alexis Ben Miloud--Josselin <alexis.bmj+git@protonmail.com>
Date: Mon, 29 Apr 2019 22:48:43 +0200
[sic] fix awk commands in usage page
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools.suckless.org/sic/usage/index.md b/tools.suckless.org/sic/usage/index.md
@@ -21,9 +21,9 @@ Highlighting
If you want to receive an alert in case someone mention your username, you can
use awk(1):
- $ sic | awk '/username/ ~ {printf "\a"}1'
+ $ sic | awk '/username/ {printf "\a"}1'
Using a tool like awk(1) would allow you to be highlighted on specific channels
for example. You can of course combine it with the tee(1) command above:
- $ sic | tee -a sic_history | awk '/username/ ~ {printf "\a"}1'
+ $ sic | tee -a sic_history | awk '/username/ {printf "\a"}1'