From owner-freebsd-questions@FreeBSD.ORG Wed Jan 31 19:27:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2901016A400 for ; Wed, 31 Jan 2007 19:27:26 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id CE3DC13C428 for ; Wed, 31 Jan 2007 19:27:25 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so297485wxc for ; Wed, 31 Jan 2007 11:27:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Z3LZ/6WUUnG3spKjV++51nAzyKaCPj9ClWt4biyxZdLdlBLVsLhpQEdY83e8144QSUQEu5Hnd2DHGgIioCjbHPuD8XvE4LmOnlFWD6hPn/jYEqZSx6pGxgu19iHFQQns4B+APcNSCH6v2w3dAsvnBZyYQKvxI3S4TAI0Eikof2w= Received: by 10.70.16.6 with SMTP id 6mr2021386wxp.1170271644806; Wed, 31 Jan 2007 11:27:24 -0800 (PST) Received: by 10.70.52.12 with HTTP; Wed, 31 Jan 2007 11:27:24 -0800 (PST) Message-ID: Date: Wed, 31 Jan 2007 14:27:24 -0500 From: "Dak Ghatikachalam" To: freebsd-questions@freebsd.org In-Reply-To: <20070131190658.GA49580@fw.home> MIME-Version: 1.0 References: <20070131190658.GA49580@fw.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Korn shell script Question 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, 31 Jan 2007 19:27:26 -0000 On 1/31/07, Kris Maglione wrote: > > On Wed, Jan 31, 2007 at 01:43:28PM -0500, Dak Ghatikachalam wrote: > >I tried with several looping for some reason I dont seem to get in right > in > >Korn shell > > > >Any ideas on Ksh would be great, You can use any standard unix utilities > to > >achieve this. > > Something to this effect should suffice, though I'm not convinced > there's not a simpler way. > > #!/usr/local/bin/ksh > > { while cat file1.txt; do false; done } |& > > cat file2.txt | > while read file_b > do > read -p file_a > echo $file_b $file_a > done >file3.txt > _______________________________________________ > Hi Kris Thanks a lot , I test ran it. This is great Thanks Dak