{"id":1579,"date":"2017-12-04T12:36:25","date_gmt":"2017-12-04T12:36:25","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1579"},"modified":"2025-02-01T22:39:40","modified_gmt":"2025-02-01T22:39:40","slug":"configuring-line-ending-settings-in-perforce","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/configuring-line-ending-settings-in-perforce\/","title":{"rendered":"Configuring line-ending settings in perforce"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Configuring line-ending settings in perforce<\/strong><br \/>\nUnix uses one byte, 0x0A (LineFeed), while windows uses two bytes, 0x0D 0x0A (Carriage Return, Line feed).<\/p>\n<p>To Find the files which has Windows line endings<br \/>\negrep -l $&#8217;\\r\\n&#8217; * in Bash<\/p>\n<p>To Convert files from DOS TO unix<br \/>\ndos2unix -U<\/p>\n<p>file <filename><br \/>\nif the file has regular LF line endings, then it won&#8217;t print any output. But if the file has CRLF, bare CR, or mixed line endings, it will tell you that<\/p>\n<p>Configuring line-ending settings in perforce<br \/>\n<a href=\"http:\/\/kb.perforce.com\/article\/63\" target=\"_blank\" rel=\"noopener\">kb.perforce.com\/article\/63<\/a><br \/>\n<a href=\"http:\/\/kb.perforce.com\/article\/63\" target=\"_blank\" rel=\"noopener\">kb.perforce.com\/article\/63<\/a><br \/>\n<a href=\"http:\/\/kb.perforce.com\/article\/71\/perforce-macintosh-platform-notes\" target=\"_blank\" rel=\"noopener\">kb.perforce.com\/article\/71\/perforce-macintosh-platform-notes<\/a><br \/>\n<a href=\"http:\/\/www.perforce.com\/perforce\/r10.1\/manuals\/p4guide\/02_config.html\" target=\"_blank\" rel=\"noopener\">www.perforce.com\/perforce\/r10.1\/manuals\/p4guide\/02_config.html<\/a><br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Configuring line-ending settings in perforce Unix uses one byte, 0x0A (LineFeed), while windows uses two bytes, 0x0D 0x0A (Carriage Return, Line feed). To Find the files&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[370],"tags":[373],"class_list":["post-1579","post","type-post","status-publish","format-standard","hentry","category-perforce","tag-perforce"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1579"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1579\/revisions"}],"predecessor-version":[{"id":1580,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1579\/revisions\/1580"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}