Advanced Search and Replace HOWTO?
Just wondering how to script or use tool (technique) to search through multiple files for a string and duplicate the line and change part of the content in one of the duplicate.
I have a windows source, I'd like to have an automated way to scan through the code adding OS test statement and Unix version of code.
automatically changes to
.... windows_function_call, windows_path'\' ...
I can manually add those lines but it's very time consuming, and I believe there must be a smart way to do it. And it's cool to know HOWTO.
... windows_function_call, windows_path'/'...
... unix_function_call, unix_path'\'...