As part of a script, I need to: Search a file for a string. Extract part of that string. Use that part string in a new line. Insert that new line just before the original line.