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


Please Help Members By Posting Answers For Below Questions

What does echo $0 do?

584


What are "c" and "b" permission fields of a file?

564


Why is it called a shell?

507


What is a shell in operating system?

591


What is a boot block?

583






wats the deinitions for shell utility and filter?

1847


How do I read a .sh file?

532


How to print all the arguments provided to the script?

557


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

701


How can the contents of a file inside jar be read without extracting in a shell script?

593


Write down the syntax for all the loops in shell scripting.

662


How to print all array elements and their respective indexes?

510


How do I run a .sh file?

615


Why do we write bin bash in shell scripts?

546


How to get script name inside a script?

550