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 / kirtiranjan sahoo
paste file1 file2 | cut -d" " -f2,3,4 | sort -n -k2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the syntax of while loop in shell scripting?
What can you do with powershell?
What is in a script?
What are the different commands available to check the disk usage?
What will happen to my current process when I execute a command using exec?
What are the advantages of shell script?
Why are there shells on the beach?
Is shell scripting difficult?
Explore about environment variables?
What is the significance of $#?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
how will you find the total disk space used by a specific user?
How do I run a script from command prompt?
What is a batch file used for?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l