Current directory:
for /r . %x in (*.csproj) do perl -pi -i.bak -e "s/searchterm/replaceterm/" "%x"
Specified directory (untested):
for /r "C:\Temp" %x in (*.csproj) do perl -pi -i.bak -e "s/searchterm/replaceterm/" "%x"
Current directory:
for /r . %%x in (*.csproj) do perl -pi -i.bak -e "s/searchterm/replaceterm/" "%%x"
Specified directory (untested):
for /r "C:\Temp" %%x in (*.csproj) do perl -pi -i.bak -e "s/searchterm/replaceterm/" "%%x"
Current directory:
for /r . %x in (*.csproj) do perl -pi -i.bak -e "s/<RunCodeAnalysis>true<\/RunCodeAnalysis>/<RunCodeAnalysis>false<\/RunCodeAnalysis>/" "%x"
Specified directory (untested):
for /r "C:\Temp" %x in (*.csproj) do perl -pi -i.bak -e "s/<RunCodeAnalysis>true<\/RunCodeAnalysis>/<RunCodeAnalysis>false<\/RunCodeAnalysis>/" "%x"