windows to linux path delimeters and case substitution in cpp code
Posted on 2010-11-11
I have received a significant amount of cpp that was developed on windows and now needs to be compiled on Linux. My main focus for the time being is to modify paths and case in file names within paths.
The paths are easy with the sharp end of the stick doing the following sed within a series of loops in my bash script:
sed -i 's#\\#/#' <path/filename>
Could anyone ease my frustration with substituting uppercase but only in string matches where windows path delimiters can be found? Fortunately I have been unable to find whitespace in paths...yet.