最终的命令行如下:
find . -depth 4 -name '*.vcproj'|xargs sed -i -e 's/".*/.pdb"/"..//..//..//..//maps//$(ConfigurationName)//$(TargetName).pdb"/g'
主要是 sed 命令的使用,其实也简单
-i in-place editing
-e 's/../../g' 用第二部分替换第一部分,g 表全局替换
reference:
http://www.chedong.com/blog/archives/001201.html
http://rainx.cn/archives/81