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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kirtiranjan sahoo
paste file1 file2 | cut -d" " -f2,3,4 | sort -n -k2
| Is This Answer Correct ? | 0 Yes | 0 No |
What are filters explain sort with all the options available?
What language is shell scripting?
How do I edit a .sh file?
write a non recursive shell script that accepts any number of arguments and prints them in the reverse order
What are zombie processes?
How do you find out What is your shell?
What is echo in shell?
What is sed in shell script?
What happens on a system call?
How do we create command aliases in a shell?
Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.
Calculate a real number calculation directly from the terminal and not any shell script.