{"id":138,"date":"2013-12-13T08:30:23","date_gmt":"2013-12-13T08:30:23","guid":{"rendered":"http:\/\/tastaturkind.ch\/?p=138"},"modified":"2013-12-13T08:30:23","modified_gmt":"2013-12-13T08:30:23","slug":"text-converting","status":"publish","type":"post","link":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/text-converting\/","title":{"rendered":"Text converting"},"content":{"rendered":"<p>Convert DOS Line Endings to Unix&#8217;s, on a windows machine<\/p>\n<p>(Using tr and sed from the package  unxutils.sourceforge.net). I installed all of the utilities into C:\\opt\\local\\wbin and added this path to %path%.<\/p>\n<p>Using notepad, save the text to be cleaned into a textfile called &#8222;infile.txt&#8220;<\/p>\n<p>then<\/p>\n<p><code>tr -d \\r <infile.txt >tmpfile.txt<\/code><\/p>\n<p>and now (if needed) to remove empty lines from the file tmpfile.txt:<\/p>\n<p><code>sed \"\/^$\/d\" tmpfile.txt > outfile.txt<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert DOS Line Endings to Unix&#8217;s, on a windows machine (Using tr and sed from the package unxutils.sourceforge.net). I installed all of the utilities into C:\\opt\\local\\wbin and added this path to %path%. Using notepad, save the text to be cleaned &hellip; <a href=\"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/text-converting\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:attachment":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}