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