<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[/bin/bash^M: bad interpreter: No such file or directory]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[运维管理]]></category>
<pubDate>Mon, 21 Aug 2023 05:42:40 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	错误原因和现象<br/>在执行shell脚本的时候，报错：/bin/bash^M: bad interpreter: No such file or directory。<br/>是由于该脚本文件是在Windows平台编写，然后在MacOS或者Kylin-Server平台中执行。<br/>在Windows平台上文件是dos格式，换行符尾&#92;r&#92;n，而MacOS或者Kylin-Server平台文件是unix格式，换行符尾&#92;n。因此在运行脚本文件时，不能正确解析&#92;r，导致编译错误、运行失败。<br/><br/>解决方案<br/><br/>在MacOS或者Kylin-Server平台上，打开命令行工具执行命令vim *.sh（编辑你的脚本文件），然后执行命令:set ff=unix，最后执行:wq( 保存退出)即可。<br/>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] /bin/bash^M: bad interpreter: No such file or directory]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>