From owner-freebsd-questions Tue Feb 5 10:32:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f83.pav1.hotmail.com [64.4.31.83]) by hub.freebsd.org (Postfix) with ESMTP id 0068637B490 for ; Tue, 5 Feb 2002 10:31:53 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 5 Feb 2002 10:31:53 -0800 Received: from 206.130.170.10 by pv1fd.pav1.hotmail.msn.com with HTTP; Tue, 05 Feb 2002 18:31:53 GMT X-Originating-IP: [206.130.170.10] From: "Angela Yu" To: freebsd-questions@FreeBSD.ORG Subject: [Unix shell script] Date: Tue, 05 Feb 2002 18:31:53 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Feb 2002 18:31:53.0632 (UTC) FILETIME=[62462200:01C1AE73] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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