From f0d6bc15f045a0537312b36ab01beacfc14ef494 Mon Sep 17 00:00:00 2001 From: whirigoyen Date: Tue, 2 Aug 2022 17:22:02 +0200 Subject: [PATCH] Fix commande awk --- HowtoPostfix.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HowtoPostfix.md b/HowtoPostfix.md index abb52192..3c4865cc 100644 --- a/HowtoPostfix.md +++ b/HowtoPostfix.md @@ -376,8 +376,8 @@ La commande `postsuper -r` est pratique dans les cas oĆ¹ l'on a modifiĆ© des ali On pourra utiliser ces commandes sur des ensembles de messages via des scripts du type : ~~~ -# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /user@example\.com$/ { print $1 }' | tr -d '*!' | postsuper -h - -# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d - +# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /user@example\.com/ { print $1 }' | tr -d '*!' | postsuper -h - +# mailq | tail -n +2 | awk 'BEGIN { RS = "" } /example\.com/ { print $1 }' | tr -d '*!' | postsuper -d - # mailq | awk '/^[0-9A-Z]+/&&/sender@example\.com$/{print $1}' | tr -d '*!' | postsuper -h - # mailq | awk '/^[0-9A-Z]+/&&/example\.com$/{print $1}' | tr -d '*!' | postsuper -d -