摘要: if 语句格式if 条件then Commandelse Commandfi 别忘了这个结尾If语句忘了结尾fitest.sh: line 14: syntax error: unexpected end of fi if 的三种条件表达式 ifcommandthen if 函数then 命令执行成 阅读全文
posted @ 2017-12-25 09:19 百川汇海 阅读(2401) 评论(0) 推荐(0) 编辑
摘要: Linux中执行shell脚本的4种方法总结,即在Linux中运行shell脚本的4种方法: 方法一:切换到shell脚本所在的目录(此时,称为工作目录)执行shell脚本: 复制代码 代码如下: cd /data/shell ./hello.sh ./hello.sh ./的意思是说在当前的工作目 阅读全文
posted @ 2017-12-25 09:00 百川汇海 阅读(164566) 评论(0) 推荐(6) 编辑