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 / pitambar mishra

Sorry Sudhir,
Your syntax is wrong.It should be
paste file1 file2|cut -d " " -f2,3,4
But this command is n't providing the correct result.
Piz try another.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does debug script mean?

555


What does the sh command do?

612


Give some situations where typing error can destroy a program?

730


What is the use of "$?" Sign in shell script?

619


How will you print the login names of all users on a system?

577






What is shell geeksforgeeks?

600


What is awk in shell scripting?

559


What are the two files of crontab command?

656


Why is the use of shell script?

545


How do I run a script on mac?

572


What is bourne shell scripting?

535


What is the crontab?

550


How would you compare the strings in a shell script?

549


Explain about stdin, stdout and stderr?

637


what is tickets $ what low,medium,high priorite pls define time also

1723