Visual Studio的字符搜索功能很不错, 我经常用它在文件夹的各种类型文件内搜索字符串, 很方便.

 

在某些没有安装VS的机器上, 搜索字符串就比较麻烦. Windows自带的搜索工具选项有限.

 

可以使用命令行工具findstr, 来执行搜索字符串的功能. 举例如下:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES>findstr /S /N "SmallSearchInputBox" *.xml
ContentLightup\Controls\SearchArea.xml:4:        Id="SmallSearchInputBox"
OSearchBasicFeature\SearchArea.xml:4:        Id="SmallSearchInputBox"
OSearchEnhancedFeature\SearchArea.xml:4:        Id="SmallSearchInputBox"

 

参考资料:

Microsoft DOS findstr command

http://www.computerhope.com/findstr.htm

相关文章:

  • 2022-03-05
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2022-01-04
  • 2021-04-29
  • 2021-06-01
  • 2021-11-24
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案