{"id":10730,"date":"2021-12-06T10:16:20","date_gmt":"2021-12-06T10:16:20","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10730"},"modified":"2021-12-06T10:17:12","modified_gmt":"2021-12-06T10:17:12","slug":"set-for-f-delims-as-a-line-break","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/set-for-f-delims-as-a-line-break\/22203.html","title":{"rendered":"Set For \/F Delims As a Line Break"},"content":{"rendered":"<p>Hey I was coding a program when and wanted to set part of the ouput of a command as a variable so I used this code:<\/p>\n<p>for \/f &#8220;tokens=1 delims=&#8221; %%a in (&#8216;MY COMMAND&#8217;) do (echo %%a)<\/p>\n<p>But now the only problem is come commands ouput multiple lines of code and I don&#8217;t know what to type for delims to mean a line break or a new line. So how could I code this to set the delims as a line break?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":8},"question-category":[55],"question_tags":[],"class_list":["post-10730","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/10730","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=10730"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10730"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10730"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}