{"id":11591,"date":"2021-12-08T05:19:28","date_gmt":"2021-12-08T05:19:28","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=11591"},"modified":"2021-12-08T05:19:50","modified_gmt":"2021-12-08T05:19:50","slug":"remove-empty-line-using-batch-command","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/remove-empty-line-using-batch-command\/26954.html","title":{"rendered":"Remove Empty Line Using Batch Command"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I am having data file like below, where there are lot of empty lines (only separates are there). I want to remove those empty line using some batch command. Can you please help. Also I am trying to avoid to read line-by-line as the actual files are having million of lines.<\/p>\n<p>1,,3,abc,ac,aw,q<br \/>\n1,2,3,,,,q<br \/>\n1,2,qq3,abc,4ac,2aw1,q<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<br \/>\n,,,,,,<\/p>\n<p>Thanks in advance for the help.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":2},"question-category":[55],"question_tags":[],"class_list":["post-11591","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\/11591","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=11591"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=11591"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=11591"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=11591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}