{"id":4645,"date":"2021-11-11T08:13:34","date_gmt":"2021-11-11T08:13:34","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4645"},"modified":"2021-11-11T08:18:29","modified_gmt":"2021-11-11T08:18:29","slug":"dos-remove-linefeed-and-carriage-return","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/dos-remove-linefeed-and-carriage-return\/22821.html","title":{"rendered":"DOS Remove Linefeed And Carriage Return ?"},"content":{"rendered":"<p>I have a pipe separated text file with 2 lines. I need to remove the CR\/LF from the last line in the file. I must do this using the DOS batch script that created the file.<\/p>\n<p>Text file:<br \/>\nLine1has|WWW|This is a note CR\/LF &lt;&#8212; this are not visible<br \/>\nU|12345 CR\/LF &lt;&#8211; not visible &#8212; need to remove this one<\/p>\n<p>Line1has|WWW|This is a note CR\/LF &lt;&#8212;need to keep this<br \/>\nU|12345<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":7},"question-category":[55],"question_tags":[],"class_list":["post-4645","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\/4645","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=4645"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4645"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4645"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}