if i have 2 files file1 and file2....
file1 contains 2 columns like
b a
11 aa
12 as
13 ad
15 ag
11 ar
13 ah
15 ak
file2 contains
b c
10 ds
11 at
15 gh
15 jk
13 iu
11 fg
13 yy
can any 1 give me the program to display in this way?
a b c
aa 11 at
ar 11 fg
ad 13 iu
ah 13 yy
ag 15 gh
ak 15 jk
Answer Posted / sudhir
paste file1 file2 | cut -f 2,3,4 -d " "
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does shell scripting work?
Explain about debugging?
What are the two files of crontab command?
Which is better perl or shell scripting?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Explain about return code?
What is shell terminal?
How to get the first line from a file using just the terminal?
How can the contents of a file inside jar be read without extracting in a shell script?
What is bash used for?
Explain about login shell?
What are the different variables present in linux shell?
Is shell scripting difficult?
What does $$ mean in shell script?
How do I open the shell prompt?