shell脚本编写注意事项
2017-09-15 10:35
323 查看
shell中赋值变量时不能有空格
之前写python写习惯了
test = ‘free -m’
在shell中不能有空格
test='free -m'
而且使用管道符之前要留空格
test='free -m|head -2'是错误的
test='free -m | head -2'
之前写python写习惯了
test = ‘free -m’
在shell中不能有空格
test='free -m'
而且使用管道符之前要留空格
test='free -m|head -2'是错误的
test='free -m | head -2'
相关文章推荐
- shell 脚本编写注意事项
- 嵌入式linux入门之编写shell脚本应注意的事项
- Linux系统中编写shell脚本的8个注意事项
- 一段评价程序平均运行时间的shell脚本&shell脚本编写注意事项
- Linux编写shell脚本的注意事项
- shell脚本的一些注意事项
- shell脚本有关空格语法注意事项
- 编写 IBM AIX K Shell script 的几点注意事项以及完整的例子
- 编写脚本注意事项
- shell脚本的一些注意事项
- shell 脚本注意事项
- shell脚本注意事项
- 概述游戏脚本编写实用指南及注意事项
- 书写安全Shell脚本的注意事项
- makefile 中调用shell脚本注意事项
- JavaScript文本框脚本编写的注意事项
- 在centos系统shell脚本中cat和重定向符号<<EOF结合使用的注意事项
- shell脚本的一些注意事项
- shell脚本编写注意