![]() |
|
|
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 |
| Adding Multiple Lines to Multiple Files | dayinthelife | Shell Programming and Scripting | 2 | 06-04-2008 12:50 PM |
| copy lines from opne file to another | HIMANI | UNIX for Dummies Questions & Answers | 2 | 03-15-2008 05:57 AM |
| retrieved multiple lines on multiple places in a file | dala | Shell Programming and Scripting | 8 | 03-14-2008 03:28 PM |
| How to copy multiple lines from a file to another using AWK? | jisha | Shell Programming and Scripting | 3 | 01-08-2008 01:04 AM |
| Copy only the initial 10 lines from a file to another | jockey007 | Shell Programming and Scripting | 5 | 11-02-2007 02:05 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
copy value to multiple lines
Hello, does anyone know how sed can convert a file like the one shown below.
I have a file that contains data like this: Nov-12-2007 line1 line2 line3 Nov-13-2007 line5 line6 Nov-14-2007 line8 line9 line10 and what I want is this: Nov-12-2007,line1 Nov-12-2007,line2 Nov-12-2007,line3 Nov-13-2007,line5 Nov-13-2007,line6 Nov-14-2007,line8 Nov-14-2007,line9 Nov-14-2007,line10 Any help would be appreciated. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|