我编写了一个脚本来在txt文件中查找字符串:
<i ng-repeat="i in [].constructor(topic.star_rating) track by $index" class="yellow"></i>
<i ng-repeat="i in [].constructor(5 - topic.star_rating) track by $index" class="grey"></i>
List.txt像这样:
@ECHO off
Setlocal EnableDelayedExpansion
for /F "tokens=2,3" %%c in ('findstr /IRC:"568923" "List.txt"') do (
Set "A=%%c"
Echo !A!
)
结果是:568923 Can't_Help_!Falling_In_Love Music
缺少Can't_Help_Falling_In_Love
如何在标准输出中保留感叹号!