![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove duplicate rows of a file based on a value of a column | risk_sly | UNIX for Dummies Questions & Answers | 7 | 09-26-2008 07:26 AM |
| convert rows into column | cdfd123 | Shell Programming and Scripting | 3 | 01-11-2008 12:54 PM |
| Look up column in a flat file | jambesh | Shell Programming and Scripting | 5 | 09-18-2006 06:44 AM |
| Factorize some rows in a column | frebo | UNIX for Dummies Questions & Answers | 5 | 03-21-2006 06:41 AM |
| Converting Pivot file to flat file | vskr72 | Shell Programming and Scripting | 2 | 10-18-2005 05:41 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Converting Column to Rows in a Flat file
Hi,
Request To guide me in writing a shell program for the following requirement: Example:if the Input File contains the follwing data Input File Data: 80723240029,12,323,443,88,98,7,98,67,87 80723240030,12,56,6,,,3,12,56,6,7,2,3,12,56,6,7,2,3,88,98,7,98,67,87 80723240031,56,57,d,88,98,7,98,67,87,88,98,7,98,67,87 80723250032,45,hg,3 Background:After First column every 6 columns are identified as one setand first column is the key to identify the records. I have to convert the data as follows: Output File Data: 80723240029,12,323,443,88,98,7 80723240029,98,67,87 80723240030,12,56,6,,,3 80723240030,12,56,6,7,2,3 80723240030,12,56,6,7,2,3 80723240030,88,98,7,98,67,87 80723240031,56,57,d,88,98,7 80723240031,98,67,87,88,98,7 80723240031,98,67,87 80723250032,45,hg,3 Thanks in Advance, srinivas Last edited by srinikal; 10-10-2008 at 05:20 AM.. Reason: e-mail address removed |
| Bookmarks |
| Tags |
| perl, perl shift, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|