今天遇到一个问题,如何在Select-String的Pattern参数里能使用双引号

比如 Select-String -path . -pattern "Lines: <span class="metric">100% <small>" 是不能工作的

 

查看了文档https://technet.microsoft.com/en-us/library/hh847740.aspx 得到的结论是使用backtick charater(`)

Select-String -path . -pattern "Lines: <span class=`"metric`">100% <small>"

 

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案