Unix Code


 
Thread Tools Search this Thread
Contact Us Post Here to Contact Site Administrators and Moderators Unix Code
# 1  
Old 09-01-2009
Unix Code

Hi,

My requirement is I have 3 files A B C I need to write the first record of A and then 1st record of B and then 1st record of C to output and then 2nd record of A, 2nd record of B and 2nd record of C and so on to output file through UNIX.

Input
File -A
1st record----apple
2nd record----bat
3rd record----cat

File - B
1st record----axe
2nd record----ball
3rd record----cap
4th record----dog

File - C
1st record----angel
2nd record----bunch
3rd record----cool
4th record----drug
5th record----ear
6th record----fish

Output:
Apple axe angel
Bat ball bunch
Cat cap cool
Dog drug
Ear
Fish

Can any one help me?
# 2  
Old 09-01-2009
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Unix code need help

How can we see the column names of a table in unix Sent from my ASUS_Z010D using Tapatalk (3 Replies)
Discussion started by: nikhilthms97
3 Replies

2. UNIX for Dummies Questions & Answers

UNIX exit code 11

We have a batch Unix process that runs during the day and it is getting an exit code 11 from Unix. It finishes a sqlplus step and gets the exit code 11 before it starts the next step. This used to happen once a year and now is happening more often (but not every time the process runs). We have... (2 Replies)
Discussion started by: msol
2 Replies

3. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

4. HP-UX

C++ Code migration from HP Unix 11.11 to 11.31

i'm facing some problem to make my source code work in HP Unix 11.31 which works fine in HP Unix 11.11. Recently our unix server is upgraded to HP Unix 11.31, i was able to compile my source code successfully in 11.31 but i see some system call failure and socket failure. is there any steps to... (5 Replies)
Discussion started by: Madanxyz
5 Replies

5. Shell Programming and Scripting

Unix return code example

Hi, Does anyone here can guide me to understand how is return code works in a parent-child relation with a simple example? I have a request to build the script with return code in a child script, but i want to understand how does child script can return a code to the parent, stated if its... (4 Replies)
Discussion started by: khchong
4 Replies

6. UNIX for Dummies Questions & Answers

Where can i get unix source code?

Sir please tell me where can i get source code for some unix kernal and shell also. (1 Reply)
Discussion started by: VIPUL15
1 Replies

7. Post Here to Contact Site Administrators and Moderators

Source Code Of Unix

Do you have the source code of UNIX? If yes, can you please send it to me on my email email address deleted For your this help I shall be obliged to you. With Regards rajesh ***phone removed*** (1 Reply)
Discussion started by: rajesh_ranjan26
1 Replies

8. Shell Programming and Scripting

Code page in Unix

Hi, Can someone tell me how do I find the list of comptabile codepages on Linux(suse) , Is it /usr/lib/locale or somewhere else ? I was wandering if someone has expereince in using cycrillic chars (russian) in unix / linux ? Thanks (2 Replies)
Discussion started by: braindrain
2 Replies

9. Post Here to Contact Site Administrators and Moderators

the source code of unix

tha ithela na moy peite an mporo apo kapoy na vro ton pigaio kvdika toy unix se glossa c .efxaristo. (1 Reply)
Discussion started by: matsoyka
1 Replies

10. UNIX for Advanced & Expert Users

Unix Code

Hi, Does anyone know where I can find the full unix source code online? Thanks (7 Replies)
Discussion started by: jacx2
7 Replies
Login or Register to Ask a Question