2015年5月11日

(原创)Windows下编译的Shell脚本不能再Linux中运行的解决办法

摘要: 一、原理Windows编译的文件和Linux编译的文件格式不太一样,导致在Linux运行Shell脚本的时候会提示:/bin/bash^M: bad interpreter: 没有那个文件或目录。原因是这样的:1、Windows编译的文件结束时(回车+换行)2、Linux编译的文件结束时(换行) ... 阅读全文

posted @ 2015-05-11 16:22 休眠火山0112 阅读(576) 评论(0) 推荐(1) 编辑

shell脚本入门笔记

摘要: 转载:http://mp.weixin.qq.com/s?__biz=MzA3MTIxNzkyNg==&mid=204081791&idx=1&sn=27bb1d827e0f8582596f090471a5c098&scene=5#rd简单shell脚本!/bin/bash这一行表明,不管用户选择的... 阅读全文

posted @ 2015-05-11 11:13 休眠火山0112 阅读(255) 评论(0) 推荐(0) 编辑

导航