![]() |
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 |
| search and replace a specific text in text file? | santosham | UNIX for Dummies Questions & Answers | 4 | 06-25-2008 05:53 PM |
| How to replace specific text line out of multiple occurance | madhusmita | Shell Programming and Scripting | 5 | 06-17-2008 01:03 PM |
| adding text to end of each line in a file | cubs0729 | Shell Programming and Scripting | 2 | 11-10-2005 01:02 PM |
| jumping to a specific line in a text file | mridula | High Level Programming | 4 | 09-20-2005 01:49 AM |
| Adding Text To each line of a file | cubs0729 | Shell Programming and Scripting | 4 | 09-08-2005 04:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Adding specific text and spaces to each line in a text file
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example: 0 8 7 6 5 5 7 8 9 0 7 9 7 8 9 0 1 2 And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this: 21 0 8 7 6 5 5 7 8 9 0 7 9 7 8 9 0 1 2 Thanks in advance! |
|
||||
|
Thanks!
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|