Home Man
Today's Posts

Students must use and complete the template provided. If you do not use the template your post may be deleted! Special homework rules apply here.

Help with pivoting table shell script

column to row, pivoting table

Login to Reply

Thread Tools Search this Thread
# 1  
Old 08-04-2016
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

Moderator's Comments:
Help with pivoting table shell script Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.

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

this is not home work

Last edited by rbatte1; 08-04-2016 at 07:34 AM.. Reason: Added CODE tags
# 2  
Old 08-04-2016
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.
# 3  
Old 08-04-2016
not matching my requirement ,
# 4  
Old 08-04-2016
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?!
# 5  
Old 08-04-2016
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
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pivoting using shell scripts mohan705 Shell Programming and Scripting 3 07-27-2016 02:54 AM
Shell Script Table scruffytramp Shell Programming and Scripting 3 12-10-2013 01:44 PM
Transposing rows and columns (pivoting) using shell scripting ksatish89 Shell Programming and Scripting 9 04-25-2012 05:23 AM
Shell script to query Oracle table ken002 Shell Programming and Scripting 2 11-18-2010 01:50 AM
Create DB table through shell script Poonamol Shell Programming and Scripting 6 10-08-2010 04:21 AM
Truncating table from a shell script gunaah Shell Programming and Scripting 2 03-03-2010 02:59 AM
Is it possible to draw table/matrix using shell script? jakSun8 Shell Programming and Scripting 2 03-18-2009 10:53 PM
How to connect DB2 table using shell script dtidke Shell Programming and Scripting 0 06-24-2008 05:18 AM
Alter Table Shell Script ankitgupta Shell Programming and Scripting 2 10-06-2006 06:01 AM
Reading a table in a shell script luiscarvalheiro Shell Programming and Scripting 13 08-10-2006 06:16 PM

All times are GMT -4. The time now is 03:01 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password