I\'m porting an application written in C++ from Windows to Linux. I have a problem with the header files path. Windows uses \\ and Linux uses /. I
\\
/
You can try this command based on previous perl command which do the work recusrively
find . -type f -name \* | xargs grep '#include' | grep '\\' |awk -F: '{print $1}'|sort| uniq | xargs -n1 perl -i.bak -pe 'tr!\\!/! if /^\s*#\s*include\b/'