Korn shell script Question



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
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Korn shell script Question
    ... Korn shell ... Any ideas on Ksh would be great, You can use any standard unix utilities to ... Something to this effect should suffice, though I'm not convinced there's not a simpler way. ...
    (freebsd-questions)
  • Re: Korn shell script Question
    ... >I tried with several looping for some reason I dont seem to get in right ...
    (freebsd-questions)
  • Re: Installing ksh from AT&T
    ... on UNIX that uses the Korn shell, ... ksh from AT&Ts, but, being a UNIX newbie, I am not sure where to put the ...
    (comp.sys.mac.apps)
  • Re: Installing ksh from AT&T
    ... on UNIX that uses the Korn shell, ... ksh from AT&Ts, but, being a UNIX newbie, I am not sure where to put the ... BTW Tiger has ksh installed by default - you might want to upgrade to ...
    (comp.sys.mac.apps)
  • Re: how can I write a shell program to count how many files in this directory?
    ... CNT++ is not valid for ksh. ... I rewrote your script in ksh (Korn shell) below, ... echo $CNT files in current directory. ...
    (comp.unix.shell)