My data is like (a.txt)
allheartweb.com
whoisdatacenter.com
domainsanalytics.com
covercian.co.uk
I want to extract all TLD from there
My code is
cut -d "." -f 2 a.txt
its show me
com
com
com
co
if I do
cut -d "." -f 2,3
it gave me
com
com
com
co.uk
I want
com
com
com
uk
Any idea how can I do that