{"id":1349,"date":"2021-10-21T12:49:42","date_gmt":"2021-10-21T12:49:42","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=1349"},"modified":"2021-10-21T12:50:02","modified_gmt":"2021-10-21T12:50:02","slug":"solved-delete-blank-line-from-a-txt-file-using-batch","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/delete-blank-line-from-a-txt-file-using-batch\/25575.html","title":{"rendered":"Solved Delete Blank Line From a Txt File Using Batch"},"content":{"rendered":"<p>Hi Can any one help me here, i have a text file<br \/>\n30-05-2011 08:45:20<br \/>\n41<br \/>\n50<br \/>\n498<br \/>\n243<br \/>\n991<br \/>\n78<br \/>\n236<br \/>\n38<br \/>\n38<br \/>\n420<br \/>\n859<br \/>\n233<br \/>\n616<br \/>\n43<br \/>\n591<br \/>\n991<br \/>\n591<br \/>\n11<br \/>\n129<br \/>\n10<br \/>\n341<br \/>\n541<br \/>\n85<br \/>\n143<\/p>\n<p>272985<br \/>\n17537<br \/>\n69<br \/>\n78<br \/>\n236<br \/>\n243<br \/>\n85<br \/>\n302<\/p>\n<p>like this , i need to remove all empty lines from here . i tried this option already.<br \/>\nfor \/f &#8220;tokens=* delims= &#8221; %%a in (C:\\log\\DEVolap.log) do echo %%a&gt;&gt;DEVOLAP.txt<br \/>\nstill it didnt work, it may be because of trailing spaces, can anyone help me plzzzzzzzzzzzzzzzzzzzzzzz.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":6},"question-category":[55],"question_tags":[],"class_list":["post-1349","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\/1349","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=1349"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=1349"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=1349"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=1349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}