From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 19:34:11 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9652816A418 for ; Wed, 14 Nov 2007 19:34:11 +0000 (UTC) (envelope-from annkok2001@yahoo.com) Received: from web53304.mail.re2.yahoo.com (web53304.mail.re2.yahoo.com [206.190.49.94]) by mx1.freebsd.org (Postfix) with SMTP id 3295F13C442 for ; Wed, 14 Nov 2007 19:34:11 +0000 (UTC) (envelope-from annkok2001@yahoo.com) Received: (qmail 78186 invoked by uid 60001); 14 Nov 2007 19:07:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=lFUbfhXOpTxMgMiggF4CyYWnTGnzT4vbKffx7teKw+cOvDiAktroMqn/u18i9ReSEWe1hSZ71agS0xDwXw8WuIYMif/wBfTdJrCrb9pgofHClQVcJs/CtAJm0DGBovSNgjymUqhd/DP87vK2Ebo6dRCRHGjYmh8+ocVMt0UVwAI=; X-YMail-OSG: lbT6WIAVM1ngS3hN7e3XTrJOBKP4dfpt_uKzSu5.XkyZeq8xkgmSpLAyIVkHc_s4XufAHuOJ5ZV5vyuBIshDD.YYc9KXuvDnvfkrUfVGX.HZUF7qg2Ew7Lr.N9y7zkvbnr7bfY.BazXXgb8LZBFHqH09Zw-- Received: from [66.49.254.13] by web53304.mail.re2.yahoo.com via HTTP; Wed, 14 Nov 2007 11:07:29 PST Date: Wed, 14 Nov 2007 11:07:29 -0800 (PST) From: ann kok To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <295004.76329.qm@web53304.mail.re2.yahoo.com> X-Mailman-Approved-At: Wed, 14 Nov 2007 19:39:33 +0000 Subject: Can you help about script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 19:34:11 -0000 Hi all I don't have idea how to write this script, please help I have thousand records in this format indexed by FileNo. FileNo: 001 Name: NameA Address1: AddressA1 Address2: AddressA2 Phone: PhoneA Created by I need to write a script to replace those Fields eg: (NameA AddressA1.... if it matchs the FileNo.001...002...) to get Data in this file FileNo:001 Name A AddressA1 AddressA2 PhoneA FileNo:002 Name B AddressB1 AddressB2 PhoneB FileNo:003 Name C AddressC1 AddressC2 PhoneC Thank you for your help ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ