From: Zoran Dzelajlija Date: Wed, 1 Nov 2006 16:24:13 +0000 (+0000) Subject: r2: awk -F. -- no need for -F'\.' X-Git-Tag: v2.6.4-1~47 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=7beb8b3889e6e87f0febc1d2117b0c7380a22339;p=amavisd-cn.git r2: awk -F. -- no need for -F'\.' --- diff --git a/src/functions.sh b/src/functions.sh index b67aaab..a3b80f8 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -113,7 +113,7 @@ get_domain() { cp_echo "CN: no host command... \$mydomain value might be unoptimal." return fi - domains=$(hostname -f | awk -F'\.' ' + domains=$(hostname -f | awk -F. ' { for (i=2; i