{"id":569,"date":"2021-09-03T20:02:22","date_gmt":"2021-09-03T20:02:22","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/programming-was-unexpected-at-this-time-16652-html"},"modified":"2021-09-27T19:38:27","modified_gmt":"2021-09-27T19:38:27","slug":"programming-was-unexpected-at-this-time-16652-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/was-unexpected-at-this-time\/16652.html","title":{"rendered":"| was unexpected at this time."},"content":{"rendered":"<p><td>I&#8217;m using the following command <br \/>for \/F %x in (&#8216;findstr \/r \/n &#8220;Output&#8221; C:testsasi.log | find \/C &#8220;:&#8221;&#8216;) <br \/>do set XXX=%x <br \/>echo %x<\/p>\n<p>and get the error message as <br \/>&#8220;| was unexpected at this time.&#8221;<\/p>\n<p>Actually I&#8217;m trying to get the number of lines which contains the word &#8220;Output&#8221; in the file &#8220;sasi.log&#8221; and trying to store the result in a variable. (which will be finally used as exit code of the bat file)<\/p>\n<p>Any help would be appreciated.<\/p>\n<p><font size=\"2\" color=\"gray\">Skumar.<\/font><\/p>\n<\/td>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":22},"question-category":[],"question_tags":[],"class_list":["post-569","question","type-question","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=569"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=569"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}