Linux下Shell注意问题
2017-08-17 11:32
232 查看
#!/bin/bash
if [ 30 -gt 120 ];then
echo "if"
elif [ 30 -gt 20 ];then
echo "woshielsif"
else
echo "woshielse"
fi
注意: 必须要按照这个格式来,一个空格都不能少!!!
if [ 30 -gt 120 ];then
echo "if"
elif [ 30 -gt 20 ];then
echo "woshielsif"
else
echo "woshielse"
fi
注意: 必须要按照这个格式来,一个空格都不能少!!!
相关文章推荐
- linux写shell注意的问题
- shell脚本兼容linux/unix与windows/cygwin的基础(注意处理好CR, LF, CR/LF 回车 换行的问题)
- shell脚本兼容linux/unix与windows/cygwin的基础(注意处理好CR, LF, CR/LF 回车 换行的问题)
- linux写shell需要注意的问题(必看)
- 一道实用linux运维问题的9种shell解答方法
- Linux下Java Web应用程序需要注意的几点问题
- linux下shell执行PHP不成功问题
- Linux系统安全需要注意的一些问题
- 使用Linux raw socket时需要注意的一些问题
- linux下使用ThinkPHP需要注意大小写导致的问题
- Linux下shell脚本在crontab中一个周期执行不完,下周期任务被重复执行的问题解决
- linux x86_64要注意的问题
- 嵌入式 Linux下在制作静态库或者动态库的时候注意问题
- 新手选择Linux VPS过程中需要注意的几个问题
- Windows下记事本编辑的Shell脚本放到Linux下执行出错,格式问题(/bin/bash^M: bad interpreter: 没有那个文件或目录)
- linux使用c shell 、b shell 环境变量的问题
- linux及shell常用命令及遇到的问题集合
- linux运行自启动死循环java程序 及 必须注意的问题
- Linux服务器应注意的安全问题-ssh暴力破解--denyhosts解决
- shell中要注意的一些问题