{"id":2015,"date":"2015-06-29T15:43:25","date_gmt":"2015-06-29T06:43:25","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2015"},"modified":"2015-06-29T15:43:25","modified_gmt":"2015-06-29T06:43:25","slug":"linux%e3%81%a7m%e3%81%a8%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8bcrlf%e3%82%92lf%e3%81%ab%e5%a4%89%e6%8f%9b-dos2unix","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/06\/29\/linux%e3%81%a7m%e3%81%a8%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8bcrlf%e3%82%92lf%e3%81%ab%e5%a4%89%e6%8f%9b-dos2unix\/","title":{"rendered":"Linux\u3067^M\u3068\u8868\u793a\u3055\u308c\u308bCRLF\u3092LF\u306b\u5909\u63db dos2unix"},"content":{"rendered":"<p>Windows\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6539\u884c\u30b3\u30fc\u30c9\u306fCRLF\u306a\u306e\u3067\u3001\u3053\u308c\u3092Linux\u306evi\u3067\u958b\u304f\u3068^M\u3068\u3044\u3046\u8a18\u53f7\u304c\u76ee\u969c\u308a\u3067\u3042\u308b\u3002<\/p>\n<p>vi\u306e\u5909\u63db\u3092\u4f7f\u3063\u3066\u3082\u3044\u3044\u306e\u3060\u304c\u3001\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u5165\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>[shell]<br \/>\nyum install dos2unix<br \/>\ndos2unix \u5909\u63db\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d<br \/>\n[\/shell]<\/p>\n<p>\u4f55\u3082\u6307\u5b9a\u3057\u306a\u3044\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3002<br \/>\n\u9006\u306bWindows\u306eCRLF\u306b\u5909\u63db\u3059\u308b\u306b\u306funix2dos\u3092\u4f7f\u3046\u3053\u3068\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6539\u884c\u30b3\u30fc\u30c9\u306fCRLF\u306a\u306e\u3067\u3001\u3053\u308c\u3092Linux\u306evi\u3067 &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/06\/29\/linux%e3%81%a7m%e3%81%a8%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8bcrlf%e3%82%92lf%e3%81%ab%e5%a4%89%e6%8f%9b-dos2unix\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[380,381],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2015"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2015"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":2016,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2015\/revisions\/2016"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}