I need to write a script that inserts text from fileA at a specific point in the middle of fileB. the location is determined by $searchParameter.
Really what i'm doing is similar to ^R in nano.
normally what i would do is read the fileB into an array, insert the text in the middle of the array and write the array back to the fileB. the problem i'm having is the file is too large to be stored in memory.
any suggestions on how to insert fileA into fileB
In reply to append middle of File by PyrexKidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |