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

Why is shell scripting important?

578


What command needs to be used to take the backup?

534


Is powershell a language?

567


What is sed in shell script?

575


Why is a script important?

566






How do we delete all blank lines in a file?

579


Please give me example of " at command , contrab command " how to use

2331


What is shell terminal?

553


Which is better perl or shell scripting?

564


What is shell chemistry?

542


What lives in a shell?

543


Print the 10th line without using tail and head command.

1676


How to print all the arguments provided to the script?

557


What is shell and shell script?

558


What are the four fundamental components of every file system on linux?

1168