![]() |
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 |
| how to insert a extra line in a text file | bhaviknp | Shell Programming and Scripting | 2 | 03-07-2008 08:38 AM |
| insert text and add blank line | athidhi | Shell Programming and Scripting | 7 | 08-16-2007 12:56 PM |
| How to insert text into first line of the file and middle of the file? | ali hussain | Shell Programming and Scripting | 3 | 03-05-2007 05:54 AM |
| how to insert text before first line in perl | umen | Shell Programming and Scripting | 3 | 08-17-2006 04:25 AM |
| SED- Insert text at top of file | MBGPS | Shell Programming and Scripting | 12 | 07-03-2002 10:48 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Insert text file at a certain line.
I need to insert a file called temp_impact (which has about 15 lines in it) to a file called 11.23cfg starting at line 33. I searched the forums and found the
sed '34i\ test' 11.23cfg > newfile That will enter word test at the appropriate line, but i need the entire file dumped there. Any help would be appreciated. This is on an HP system so no bash shell is avalible, just sh. Is there anyway to do this with sed or is there a better way to insert it all together. Sean |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|