Re: Inserting text in existing files
Posted in 1996
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
} } Hello unixers: } } I know that should be a easy way to do that, but I don't have enough } experience using the unix's stream utilities. } you bet it is! } I have a lot of INFORMIX-4GL programs without version control (SCCS) that I } would like to put in control. } suppose f1.4gl,f2.4gl etc } I have a text file (copyright) including the SCCS keywords and other general } information for all the files. } suppose header } I would like to insert this file in each 4GL program. I some situations I } have to change an special string in the files with the copyright file. } step 1 : open the 4gl files in vi " vi f1.4gl" step 2 : move the cursor where you want to insert and " :r header" the header file will be inserted do not forget to save the file before exiting piyush } Any help is welcome! } } TIA } ////// } +---------------------------ooo-O-O-ooo--------------------------------+ } | U | } | Melvin Perez Cedano Santo Domingo, Dom. Rep.| } | Vice-President m.mejia@codetel.net.do | } | Systems Development Phone (809) 686-5574 | } | CAM Informatica, S. A. Fax (809) 686-5467 | } +----------------------------------------------------------------------+ } | ALL RIGHTS RESERVED | } | This posting is copyright and may be used only for the purposes | } | of professional study or the professional exchange of information. | } | Use of this posting by any commercial organisation for the | } | purposes of vilifying another is explicitly prohibited. | } +----------------------------------------------------------------------+ } } }