{"id":38,"date":"2008-08-04T11:14:18","date_gmt":"2008-08-04T18:14:18","guid":{"rendered":"http:\/\/shivdev.com\/blog\/2008\/08\/04\/bad-interpreter-no-such-file-or-directory\/"},"modified":"2008-08-04T15:57:58","modified_gmt":"2008-08-04T22:57:58","slug":"bad-interpreter-no-such-file-or-directory","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2008\/08\/04\/bad-interpreter-no-such-file-or-directory\/","title":{"rendered":": bad interpreter: No such file or directory"},"content":{"rendered":"<p>Running a bash script, gives the following error:<\/p>\n<blockquote><p><strong>: bad interpreter: No such file or directory<\/strong><\/p><\/blockquote>\n<p>The carriage return was not properly converted to *nix format. (maybe the file was created in Windows)<br \/>\nTo fix it run the following.<\/p>\n<blockquote><p> $ <strong>dos2unix filename <\/strong>&#8212; convert to *nix format<\/p><\/blockquote>\n<p>To copy the file to Windows run the following.<\/p>\n<blockquote><p> $ <strong>unix2dos filename<\/strong> &#8212; convert to Windows\/DOS format<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Running a bash script, gives the following error: : bad interpreter: No such file or directory The carriage return was not properly converted to *nix format. (maybe the file was created in Windows) To fix it run the following. $ dos2unix filename &#8212; convert to *nix format To copy the file to Windows run the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}