Korn shell script Question

Kris Maglione bsdaemon at comcast.net
Wed Jan 31 19:17:02 UTC 2007


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


More information about the freebsd-questions mailing list