Could someone please offer suggestions:
I am trying to search a textfile with hundreds of lines (records).
So I need to know how to search until the end of the file per each line. Within each line, I need to search for a particular string. If the string matches, I want to copy the whole line (record) into a new file (building a new file with the list of matching records).
Also, when I copy the record, I would like to place a 'insert into table(' statement at the beginning and then put a semicolon at the end so that I can execute the file as sql.
Please let me know if you have any ideas.
Thanks a lot!
