Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Feb 2002 18:31:53 +0000
From:      "Angela Yu" <angelaoyu@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   [Unix shell script] 
Message-ID:  <F83XQ3S2vUSW10Yhmvv00006e9c@hotmail.com>

next in thread | raw e-mail | index | archive | help
Greetings.

I am interested in knowing the shell script that can remove the subdomain 
part of all FQDN in a input file, have domain name sorted and send the list 
to a new output file.

Example:
Input File -
www.hotmail.com
mail.yahoo.com
ftp.yahoo.com
mail.hotmail.com
www.computer.com.uk

Output File-
computer.com.uk
hotmail.com
hotmail.com
yahoo.com
yahoo.com

Thanks,
Angela


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F83XQ3S2vUSW10Yhmvv00006e9c>