如何将感叹号放入标准输出

时间:2018-09-21 04:01:52

标签: windows batch-file cmd

我编写了一个脚本来在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

如何在标准输出中保留感叹号!

0 个答案:

没有答案