Date: Wed, 31 Jan 2007 14:27:24 -0500 From: "Dak Ghatikachalam" <dghatikachalam@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Korn shell script Question Message-ID: <ba29b9b40701311127q1600c115k5eb0f69da0733ef6@mail.gmail.com> In-Reply-To: <20070131190658.GA49580@fw.home> References: <ba29b9b40701311043u74a60268y390c32b5579fdd1d@mail.gmail.com> <20070131190658.GA49580@fw.home>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/31/07, Kris Maglione <bsdaemon@comcast.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba29b9b40701311127q1600c115k5eb0f69da0733ef6>