Help with pivoting table shell script

input file txt file

2000	    1	      name			
2000	    2	      addr			
2000	    3	      phone			
2000	    4	      email			
1000	    1	      name			
1000	    2	      addr			
1000	    3	      phone			
1000	    4	      email			
3000	    1	      name			
3000	     2	      addr			
3000	     3	      phone			
3000	       4	 email			
44444	1	name			
44444	2	addr			
44444	3	phone			
44444	4	email			

needed output

1000		name 	addr	phone	email
2000		name 	addr	phone	email
3000		name 	addr	phone	email
44444        name 	addr	phone	email

---------- Post updated at 04:44 PM ---------- Previous update was at 04:21 PM ----------

this is not home work

Have you searched the entire site for the word "pivot" using the "Search" pull down menu?

I guess not, because there are umpteen solutions on the theme.

not matching my requirement ,

Do you honestly mean to tell me that NONE of the threads that are available on this site cannot be modified by you for yourself?
(I am at a loss.)

What is so special about your specific requirements, please show us a real example?!

Why in the first place did you post in the Homework & Coursework forum? When you do this, the special rules for this forum must be complied with.

If this is NOT home- or classwork, please give some more background like

  • the origin and context of this task
  • the company you work for
  • your role in the company