![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Linux Replicated High Availability Manager 1.4.4 (DRBD 8.2 based branch) | iBot | Software Releases - RSS News | 0 | 08-29-2008 06:50 AM |
| Use records from one file to delete records in another file | kenneth.mcbride | UNIX for Dummies Questions & Answers | 5 | 06-18-2008 02:36 PM |
| Linux Replicated High Availability Manager 1.4.2 (DRBD 8.2 based branch) | iBot | Software Releases - RSS News | 0 | 04-15-2008 02:00 PM |
| Linux Replicated High Availability Manager 1.2.8 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-21-2008 09:00 PM |
| Count No of Records in File without counting Header and Trailer Records | guiguy | Shell Programming and Scripting | 2 | 06-07-2007 12:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to replicated records using sed
I need to generate exactly 102 duplicates in a file using sed.
Here's an example of my input: Grid-ref = 1, 148 Grid-ref = 1, 311 Grid-ref = 1, 428 I need: Grid-ref = 1, 148 Grid-ref = 1, 148 Grid-ref = 1, 148 Grid-ref = 1, 148 ... repeated 102 times, then Grid-ref = 1, 311 Grid-ref = 1, 311 Grid-ref = 1, 311 ... repeated 102 times, then record 3, etc. Any ideas using either sed (preferably), awk or ksh? thanks |
![]() |
| Bookmarks |
| Tags |
| duplicates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|