From owner-freebsd-questions@FreeBSD.ORG Wed Jan 31 18:43:29 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 4923F16A401 for ; Wed, 31 Jan 2007 18:43:29 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 0CF4913C4DB for ; Wed, 31 Jan 2007 18:43:28 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so285165wxc for ; Wed, 31 Jan 2007 10:43:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=e7KbiHWl3y2fGWMY3sdn7k0/Lo0O0mOxxIBRIaMhFojmqu+1LER5wVa8iGRp+4+YoTnh54NErIUnIW41hXkwrVCCIMRxsfO3iHGH7sdHTeNFMv8aplwjhalOr3SNXM4KsVaUDDuwycaV8ioBdU9dilNZjDJ+ZBUCq3ChX/rrOt8= Received: by 10.70.132.2 with SMTP id f2mr1978657wxd.1170269008454; Wed, 31 Jan 2007 10:43:28 -0800 (PST) Received: by 10.70.52.12 with HTTP; Wed, 31 Jan 2007 10:43:28 -0800 (PST) Message-ID: Date: Wed, 31 Jan 2007 13:43:28 -0500 From: "Dak Ghatikachalam" To: freebsd-questions MIME-Version: 1.0 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: 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 18:43:29 -0000 Dear Freebsd'ers I have a an issue to address. in Korn Shell I have file_1 containing 1 2 3 4 and I have another file_2 containing A B C D E F G H I I have use these file_1 and file_2 and generate a file file_3 containing. A 1 B 2 C 3 D 4 E 1 F 2 G 3 H 4 I 1 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. Thanks DAk