awk expression that works on awk v4.0.2 but it does not on >= 4.2.1 – CentOS
I have this awk command: echo www.host.com |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//' which what it does is to get the domain from the hostname: host.com that command works on CentOS 7 (awk v 4.0.2), but it…