![]() |
|
|
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 |
| Insert text file at a certain line. | insania | Shell Programming and Scripting | 4 | 08-01-2006 03:46 AM |
| insert word in each line of a file | atticus | Shell Programming and Scripting | 7 | 03-23-2006 02:15 AM |
| Failed to insert string into file before line | nir_s | Shell Programming and Scripting | 7 | 07-26-2005 02:37 AM |
| insert a line in a file | RishiPahuja | Shell Programming and Scripting | 7 | 06-22-2005 04:47 AM |
| Insert a line as the first line into a very huge file | shriek | UNIX for Advanced & Expert Users | 3 | 03-09-2005 01:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Insert line into file
Hi,
My File 'temp.txt' contents are like this. <Managers> Mng={{FIL|FAVEI.mng|111}|15.000000|17.000000|17.000000| Mng={{FIL|FAPSV.mng|222}|3.000000|0.000000|0.000000|0.000000| Mng={{FIL|FAVIF.mng|333}|8.000000|8.000000|8.000000|8.000000| Mng={{FIL|FAVGR.mng|444}|15.000000|15.000000|15.000000| Mng={{FIL|FAPST.mng|555}|3.000000|3.000000|3.000000|3.000000| Mng={{FIL|FAVGO.mng|666}|13.000000|14.000000|14.000000|14.000000| Mng={{FIL|FASOT.mng|777}|5.000000|5.000000|5.000000|5.000000} Mng={{FIL|FAWSC.mng|888}|4.000000|4.000000|4.000000|4.000000} </Managers> Here I want to insert the line similar to other lines before </Managers> with exactly similar number of columns. For example, Mng={{FIL|FAPSA.mng|123}|0.000000|0.000000|0.000000|0.000000} nedds to be inserted using perl script. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|