Shell脚本编程(二) 2021-09-12 系统 1421 words 3 mins read Shell 传递参数 我们可以在执行 Shell 脚本时,向脚本传递参数,脚本内获取参数的格式为:$n。n 代表一个数字,1 为执行脚本的第一个参数,2 为执行脚本的第二 Read more...
Shell脚本编程(一) 2021-09-12 系统 1795 words 4 mins read Shell变量 注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。同时,变量名的命名须遵循如下规则: 命名只能使用英文字母 Read more...
常用Linux命令(一) 2021-09-12 系统 1197 words 3 mins read Shell echo命令 1.显示普通字符串: echo “It is a test” 这里的双引号完全可以省略,以下命令与上面实例效果一致: echo It is a test 2.显示转义字符 echo “"It is a test"” 结果将 Read more...