{"id":11595,"date":"2021-12-08T05:23:21","date_gmt":"2021-12-08T05:23:21","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=11595"},"modified":"2021-12-08T05:23:58","modified_gmt":"2021-12-08T05:23:58","slug":"writing-mutiple-lines-using-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/writing-mutiple-lines-using-batch-file\/20985.html","title":{"rendered":"Writing Mutiple Lines Using Batch File"},"content":{"rendered":"<p>Hello Friends,<\/p>\n<p>I wish to write multiple lines using batch files to a new file..<\/p>\n<p>for example,<\/p>\n<p>This is line 1<br \/>\nThis is line 2<br \/>\nThis is line 3<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nThis is line N<\/p>\n<p>I know this,<\/p>\n<p>ECHO This is line 1 &gt;&gt;temp.txt<br \/>\nECHO This is line 2 &gt;&gt;temp.txt<br \/>\nECHO This is line 3 &gt;&gt;temp.txt<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\nECHO This is line N &gt;&gt;temp.txt<\/p>\n<p>What I wish to know, instead of writing echo and &gt;&gt;temp.txt on everyline, can we group them together like we do in shell scripting..<\/p>\n<p>Regards,<br \/>\nAsh<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1},"question-category":[55],"question_tags":[],"class_list":["post-11595","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\/11595","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=11595"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=11595"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=11595"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=11595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}